/// <summary> /// Selects all the text /// </summary> public virtual void SelectAll() { if (TalkWindowForm != null && TalkWindowTextBox is TextBoxBase) { var tb = (TextBoxBase)TalkWindowTextBox; TalkWindowForm.Invoke(new MethodInvoker(tb.SelectAll)); } }
/// <summary> /// Pastes text from clipboard into the talk window /// </summary> public virtual void Paste() { if (TalkWindowForm != null && TalkWindowTextBox is TextBoxBase) { var tb = (TextBoxBase)TalkWindowTextBox; TalkWindowForm.Invoke(new MethodInvoker(tb.Paste)); } }
/// <summary> /// Decreases the font size in the talk window by a step /// </summary> public virtual void ZoomOut() { if (TalkWindowForm != null && TalkWindowTextBox is TextBoxBase) { TalkWindowForm.Invoke(new MethodInvoker(delegate { if (TalkWindowTextBox.Font.Size - FontSizeDelta >= MinFontSize) { if (setFont(TalkWindowTextBox.Font.Size - FontSizeDelta)) { notifyFontChanged(); } } })); } }