Beispiel #1
0
 public override void Print(IGraphicsRenderer graphics)
 {
     graphics.PrintText(
         string.Format(
             "Rectangle ({0},{1}) width = {2} height = {3} ",
             Location.X,
             Location.Y,
             Width,
             Height));
 }
Beispiel #2
0
 public override void Print(IGraphicsRenderer graphics)
 {
     graphics.PrintText(
         string.Format(
             "Ellipse ({0},{1}) diameterH = {2} diameterV = {3} ",
             Location.X,
             Location.Y,
             horizontalDiameter,
             verticalDiameter));
 }
Beispiel #3
0
 public override void Print(IGraphicsRenderer graphics)
 {
     graphics.PrintText(
         string.Format(
             "TextBlock ({0},{1})  width = {2} height = {3} text=\"{4}\" ",
             Location.X,
             Location.X,
             Width,
             Height,
             text));
 }
Beispiel #4
0
 public override void Print(IGraphicsRenderer graphics)
 {
     graphics.PrintText(string.Format("Circle ({0},{1}) size={2}", Location.X, Location.Y, diameter));
 }
Beispiel #5
0
 public override void Print(IGraphicsRenderer graphics)
 {
     graphics.PrintText(string.Format("Square ({0},{1}) size={2}", Location.X, Location.Y, width));
 }