Exemplo n.º 1
0
 public override string ToString()
 {
     var ptx1 = Point1X.ToString("0.00000").PadLeft(14);
     var pty1 = Point1Y.ToString("0.00000").PadLeft(14);
     var ptx2 = Point2X.ToString("0.00000").PadLeft(14);
     var pty2 = Point2Y.ToString("0.00000").PadLeft(14);
     var angle = Angle.ToString("0.00000").PadLeft(14);
     return $"{Color.ToString().PadLeft(6)}{Prop2.ToString().PadLeft(6)}{Prop3.ToString().PadLeft(6)}{Prop4.ToString().PadLeft(6)}{Prop5.ToString().PadLeft(6)}{Prop6.ToString().PadLeft(6)}{Type.ToString().PadLeft(6)}{Direction.ToString().PadLeft(6)}{ptx1}{pty1}{ptx2}{pty2}{angle}";
 }
Exemplo n.º 2
0
            public string[] Valor()
            {
                int i = 0;

                string[] a = new string[3];
                a[i++] = Prop1.ToString();
                a[i++] = Prop2.ToString();
                a[i++] = Prop3.ToString();
                return(a);
            }