コード例 #1
0
 /// <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));
 }
コード例 #2
0
 public static int GetEventMask(this RichTextBox richTextBox)
 {
     return(RichTextBoxHelper.GetEventMask(richTextBox));
 }
コード例 #3
0
 public static void SetEventMask(this RichTextBox richTextBox, int mask)
 {
     RichTextBoxHelper.SetEventMask(richTextBox, mask);
 }
コード例 #4
0
 public static int GetHScroll(this RichTextBox richTextBox)
 {
     return(RichTextBoxHelper.GetHScroll(richTextBox));
 }
コード例 #5
0
 public static void SetHScroll(this RichTextBox richTextBox, int position)
 {
     RichTextBoxHelper.SetHScroll(richTextBox, position);
 }
コード例 #6
0
 public static void HideSelection(this RichTextBox richTextBox, bool hide)
 {
     RichTextBoxHelper.HideSelection(richTextBox, hide);
 }
コード例 #7
0
 public static void ScrollLines(this RichTextBox richTextBox, int linesToScroll)
 {
     RichTextBoxHelper.ScrollLines(richTextBox, linesToScroll);
 }
コード例 #8
0
 public static int GetLastVisibleCharIndex(this RichTextBox richTextBox)
 {
     return(RichTextBoxHelper.GetLastVisibleCharIndex(richTextBox));
 }
コード例 #9
0
 public static int GetVisibleLines(this RichTextBox richTextBox)
 {
     return(RichTextBoxHelper.GetVisibleLines(richTextBox));
 }
コード例 #10
0
 public static void SetRedraw(this RichTextBox richTextBox, bool enableRedraw)
 {
     RichTextBoxHelper.SetRedraw(richTextBox, enableRedraw);
 }
コード例 #11
0
 /// <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));
 }
コード例 #12
0
 /// <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));
 }
コード例 #13
0
 /// <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));
 }
コード例 #14
0
 /// <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));
 }