SharpVectors.Dom.Svg.SvgUseElement.HandleAttributeChange C# (CSharp) Method

HandleAttributeChange() public method

public HandleAttributeChange ( XmlAttribute attribute ) : void
attribute System.Xml.XmlAttribute
return void
        public override void HandleAttributeChange(XmlAttribute attribute)
        {
            if(attribute.NamespaceURI.Length == 0)
            {
                switch(attribute.LocalName)
                {
                    case "x":
                        x = null;
                        return;
                    case "y":
                        y = null;
            return;
              case "width":
                        width = null;
            return;
              case "height":
                        height = null;
            return;
            }
              }
            else if(attribute.NamespaceURI == SvgDocument.XLinkNamespace)
            {
                switch(attribute.LocalName)
                {
                    case "href":
                        instanceRoot = null;
            break;
                }
            }

              base.HandleAttributeChange(attribute);
        }