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

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

public StartElement ( String tag, string>.IDictionary h ) : void
tag String
h string>.IDictionary
Результат void
        public void StartElement(String tag, IDictionary<string,string> h)
        {
            if (topList == null) {
                if (tag.Equals("Bookmark")) {
                    topList = new List<Dictionary<String, Object>>();
                    return;
                }
                else
                    throw new Exception(MessageLocalization.GetComposedMessage("root.element.is.not.bookmark.1", tag));
            }
            if (!tag.Equals("Title"))
                throw new Exception(MessageLocalization.GetComposedMessage("tag.1.not.allowed", tag));
            Dictionary<String, Object> attributes = new Dictionary<String, Object>();
            foreach (KeyValuePair<string,string> kv in h)
                attributes[kv.Key] = kv.Value;
            attributes["Title"] = "";
            attributes.Remove("Kids");
            attr.Push(attributes);
        }