iTextSharp.text.pdf.hyphenation.SimplePatternParser.StartElement C# (CSharp) Метод

StartElement() публичный Метод

public StartElement ( String tag, Hashtable h ) : void
tag String
h Hashtable
Результат void
        public void StartElement(String tag, Hashtable h) {
            if (tag.Equals("hyphen-char")) {
                String hh = (String)h["value"];
                if (hh != null && hh.Length == 1) {
                    hyphenChar = hh[0];
                }
            } else if (tag.Equals("classes")) {
                currElement = ELEM_CLASSES;
            } else if (tag.Equals("patterns")) {
                currElement = ELEM_PATTERNS;
            } else if (tag.Equals("exceptions")) {
                currElement = ELEM_EXCEPTIONS;
                exception = new ArrayList();
            } else if (tag.Equals("hyphen")) {
                if (token.Length > 0) {
                    exception.Add(token.ToString());
                }
                exception.Add(new Hyphen((String)h[HtmlTags.PRE],
                                                (String)h["no"],
                                                (String)h["post"]));
                currElement = ELEM_HYPHEN;
            }
            token.Length = 0;
        }