예제 #1
0
 public TextObject(string text, int x, int y, string font = "Arial", int size = 20)
     : base()
 {
     this.font = font;
     this.size = size;
     this.x    = x;
     this.text = text;
     this.y    = y;
     obj       = new Entities.textObjectText(text, x, y, font, size);
     SetGraphic(obj);
 }
예제 #2
0
 public void CenterOriginY()
 {
     obj = new Entities.textObjectText(this.text, x, y, font, size);
     obj.CenterOrigin();
     SetGraphic(obj);
 }