// Token: 0x06000518 RID: 1304 RVA: 0x000242F6 File Offset: 0x000224F6 protected override void ClearCommand() { if (cmd != null) { cmd.Dispose(); } cmd = new TextToolCommand(Text, TextFont, StartPoint); }
protected override void ClearCommand() { if (this.cmd != null) { this.cmd.Dispose(); } this.cmd = new TextToolCommand(this.Text, this.TextFont, this.StartPoint); }
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)); }
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(); }