/// <summary> /// Sets the font name for the selected text of the RichTextBox /// </summary> /// <param name="fontName">Name of the font to use</param> /// <returns>Returns true on success, false on failure</returns> public static bool SelectionFontName(this RichTextBox richTextBox, string fontName) { return(RichTextBoxHelper.SelectionFontName(richTextBox, fontName)); }
public static int GetEventMask(this RichTextBox richTextBox) { return(RichTextBoxHelper.GetEventMask(richTextBox)); }
public static void SetEventMask(this RichTextBox richTextBox, int mask) { RichTextBoxHelper.SetEventMask(richTextBox, mask); }
public static int GetHScroll(this RichTextBox richTextBox) { return(RichTextBoxHelper.GetHScroll(richTextBox)); }
public static void SetHScroll(this RichTextBox richTextBox, int position) { RichTextBoxHelper.SetHScroll(richTextBox, position); }
public static void HideSelection(this RichTextBox richTextBox, bool hide) { RichTextBoxHelper.HideSelection(richTextBox, hide); }
public static void ScrollLines(this RichTextBox richTextBox, int linesToScroll) { RichTextBoxHelper.ScrollLines(richTextBox, linesToScroll); }
public static int GetLastVisibleCharIndex(this RichTextBox richTextBox) { return(RichTextBoxHelper.GetLastVisibleCharIndex(richTextBox)); }
public static int GetVisibleLines(this RichTextBox richTextBox) { return(RichTextBoxHelper.GetVisibleLines(richTextBox)); }
public static void SetRedraw(this RichTextBox richTextBox, bool enableRedraw) { RichTextBoxHelper.SetRedraw(richTextBox, enableRedraw); }
/// <summary> /// Sets the background color for the selected text of the RichTextBox /// </summary> /// <param name="color">Color to apply</param> /// <returns>Returns true on success, false on failure</returns> public static bool SelectionBackColor(this RichTextBox richTextBox, Color color) { return(RichTextBoxHelper.SelectionBackColor(richTextBox, color)); }
/// <summary> /// Sets the font color for the word in the selected point /// </summary> /// <param name="color">Color to apply</param> /// <returns>Returns true on success, false on failure</returns> public static bool WordFontColor(this RichTextBox richTextBox, Color color) { return(RichTextBoxHelper.WordFontColor(richTextBox, color)); }
/// <summary> /// Sets the font style for the selected text of the RichTextBox /// </summary> /// <param name="fontStyle">Font style to apply to selected text</param> /// <returns>Returns true on success, false on failure</returns> public static bool SelectionFontStyle(this RichTextBox richTextBox, FontStyle fontStyle) { return(RichTextBoxHelper.SelectionFontStyle(richTextBox, fontStyle)); }
/// <summary> /// Sets the font size for the selected text of the RichTextBox /// </summary> /// <param name="fontSize">Font size to use</param> /// <returns>Returns true on success, false on failure</returns> public static bool SelectionFontSize(this RichTextBox richTextBox, int fontSize) { return(RichTextBoxHelper.SelectionFontSize(richTextBox, fontSize)); }