The RibbonTextBox class is a control that can be used to display or edit unformatted text. The control is inherited from the System.Windows.Forms.Control class. The following describes only the properties, methods and events defined through the RibbonTextBox class. For a list of properties, methods and events inherited from the System.Windows.Forms.Control class see the .NET Framework reference.


public class RibbonTextBox : System.Windows.Forms.Control
Public Class RibbonTextBox
  Inherits System.Windows.Forms.Control

Introduced: X14.


Constructor Description
RibbonTextBox Initializes a new instance of the RibbonTextBox class.


Event Description
DownButtonClicked Occurs as the text box's down button is clicked.
TextValidated Occurs when text box's text is validated.
UpButtonClicked Occurs as the text box's up button is clicked.


Property Description
DisplayMode Sets the RibbonTextBox's superordinate display settings and gets its corresponding text icon relation rendering to the current group's width.
IsScalable Gets or sets a value indicating whether the RibbonTextBox changes its display mode when the related ribbon group is scaled by resizing the application.
KeyTip Gets or sets the keyboard shortcut of the RibbonTextBox.
Label Gets or sets the text that is displayed before the text box.
LargeIcon Gets or sets a 32x32 1/96 inch icon for this RibbonTextBox.
ParentCollection Gets the RibbonItemCollection that contains this RibbonTextBox.
SelectedText Gets or sets the text of the current selection in the text box.
SelectionLength Gets or sets the number of characters in the current selection in the text box.
SelectionStart Gets or sets the starting position of the text selected in the text box
ShowUpDownButtons Gets or sets a value whether the text box's up down buttons are shown or not.
SmallIcon Gets or sets a 16x16 1/96 inch icon for this RibbonTextBox.
Text Overridden.
TextAlign Gets or sets how text is aligned in the text box.
TextBoxLabel Gets or sets the text that is displayed behind the text box.
TextBoxWidth Gets or sets the width, in 1/96 inch, of the text box.
ToolTip Gets an object of type RibbonToolTip that displays text when the mouse pointer hovers over the item.
ValidationMode Gets or sets the RibbonTextBox's input validation mode that is used to validate the inserted text in the text box.