/// <summary> /// Creates a new instance. /// </summary> public ExtendedRichTextBox() { this.pixelsPerDialogUnit = TextBoxUtility.CalcPixelsPerDialogUnit(this); // By default, most RichTextBoxes just need to paste in // text (not objects, images, formatted text, etc.). this.PasteTextOnly = true; }
/// <summary> /// Called when the font has changed. /// </summary> /// <param name="e">The event arguments.</param> protected override void OnFontChanged(EventArgs e) { base.OnFontChanged(e); this.pixelsPerDialogUnit = TextBoxUtility.HandleFontChanged(this, this.tabSpaces); }
public bool GotoLine(int lineNumber, bool selectLine) { bool result = TextBoxUtility.GotoLine(this, lineNumber, selectLine); return(result); }
public bool Scroll(int horizontalChars, int verticalLines) { bool result = TextBoxUtility.Scroll(this, horizontalChars, verticalLines); return(result); }
public int GetLineFromChar(int characterIndex) { int result = TextBoxUtility.GetLineFromChar(this, characterIndex); return(result); }
public int GetLineLength(int lineNumber) { int result = TextBoxUtility.GetLineLength(this, lineNumber); return(result); }