예제 #1
0
        public void WriteToFile(tagWriter writeElement, endOfTagWithContent endTag)
        {
            var dictionary = new Dictionary <String, String>();

            writeElement(tagname, Attributes, true);

            foreach (KeyValuePair <string, SvgElement> elem in childs)
            {
                elem.Value.WriteToFile(writeElement, endTag);
            }

            endTag(tagname);
        }
예제 #2
0
        public void WriteToFile(tagWriter writeElement, endOfTagWithContent endTag)
        {
            string d = "";

            foreach (var point in Path)
            {
                if (d != "")
                {
                    d += " ";
                }
                d += point.ToString();
            }
            Attributes["d"] = d;
            writeElement(Tagname, Attributes, false);
        }