Exemplo n.º 1
0
 // Token: 0x06000518 RID: 1304 RVA: 0x000242F6 File Offset: 0x000224F6
 protected override void ClearCommand()
 {
     if (cmd != null)
     {
         cmd.Dispose();
     }
     cmd = new TextToolCommand(Text, TextFont, StartPoint);
 }
Exemplo n.º 2
0
 protected override void ClearCommand()
 {
     if (this.cmd != null)
     {
         this.cmd.Dispose();
     }
     this.cmd = new TextToolCommand(this.Text, this.TextFont, this.StartPoint);
 }
Exemplo n.º 3
0
 public Font GetCommandFont()
 {
     if (base.Commands.Count > 0)
     {
         TextToolCommand command = (TextToolCommand)base.Commands[base.Commands.Count - 1];
         return(command.Font);
     }
     return(new Font("Arial", 10f));
 }
Exemplo n.º 4
0
 public TextTool(ScrapPaintWindow parent) : base(parent)
 {
     this.Text          = "";
     this.TextFont      = new Font("Arial", 10f);
     this.StartPoint    = Point.Empty;
     this.parentCommand = null;
     this.cmd           = null;
     this.textbox       = new TextArea();
     this.ClearCommand();
 }