示例#1
0
 public void DumpShapeData(XmlWriter xw)
 {
     for (int i = 0; i < Shapes.Count; i++)
     {
         Shape2D sh = Shapes[i];
         sh.Dump(xw);
     }
 }
示例#2
0
 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(",");
         }
     }
 }
示例#3
0
        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("          ]");
        }