public AttrClass(System.Xml.XmlElement elem) { this.attr = elem.GetAttributeNode("class"); if (this.attr == null) { elem.SetAttribute("class", ""); this.attr = elem.GetAttributeNode("class"); } this.classes = new System.Collections.ArrayList(); string[] a = this.attr.Value.Split(new char[] { ' ' }); for (int i = 0; i < a.Length; i++) { this.classes.Add(a[i]); } }
public override bool LoadFromSVGXML(System.Xml.XmlElement shapeEle, bool invertY) { System.Xml.XmlAttribute attrPoints = shapeEle.GetAttributeNode("points"); if (attrPoints == null) { return(false); } string val = attrPoints.Value; this.polyPoints = SVGSerializer.SplitPointsString(val, invertY); return(true); }