TXTextControl.Windows.Forms.Ribbon.RibbonTextBox Class

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.

Introduced: 24.0.


public class RibbonTextBox : System.Windows.Forms.Control
[Visual Basic]
Public Class RibbonTextBox
  Inherits System.Windows.Forms.Control


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


Property Description
DisplayMode Sets the RibbonTextBox's superordinate display settings and gets its corresponding text icon relation rendering to the current group's width.
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 icon for this RibbonTextBox.
ParentCollection Gets the RibbonItemCollection that contains this RibbonTextBox.
ShowUpDownButtons Gets or sets a value whether the text box's up down buttons are shown or not.
SmallIcon Gets or sets a 16x16 icon for this RibbonTextBox.
Text Overridden. Gets or sets the text that is inserted in the text box.
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 width 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.


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.

See Also