public void DumpShapeData(XmlWriter xw) { for (int i = 0; i < Shapes.Count; i++) { Shape2D sh = Shapes[i]; sh.Dump(xw); } }
public void DumpShapeData(StringWriter sw) { for (int i = 0; i < Shapes.Count; i++) { Shape2D sh = Shapes[i]; sh.Dump(sw); if (i < Shapes.Count - 1) { sw.Write(","); } } }
public void DumpShapes(StringWriter sw) { sw.WriteLine(" " + this.DefinitionName + ":"); sw.WriteLine(" ["); for (int i = 0; i < Shapes.Count; i++) { Shape2D sh = Shapes[i]; sw.Write(" "); sh.Dump(sw); if (i < Shapes.Count - 1) { sw.Write(","); } sw.WriteLine(""); } sw.WriteLine(" ]"); }