iTextSharp.text.pdf.SimpleNamedDestination.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 (xmlNames == null) {
                if (tag.Equals("Destination")) {
                    xmlNames = new Dictionary<string,string>();
                    return;
                }
                else
                    throw new ArgumentException(MessageLocalization.GetComposedMessage("root.element.is.not.destination"));
            }
            if (!tag.Equals("Name"))
                throw new ArgumentException(MessageLocalization.GetComposedMessage("tag.1.not.allowed", tag));
            if (xmlLast != null)
                throw new ArgumentException(MessageLocalization.GetComposedMessage("nested.tags.are.not.allowed"));
            xmlLast = new Dictionary<string,string>(h);
            xmlLast["Name"] = "";
        }