Ribbon for WinForms
テキストボックス
要素 > リボンアイテム > テキストボックス

A TextBox enables the user to input text information in the application.

The Ribbon TextBox item is shown in the image below:

Textbox

Adding TextBox at Design-Time

The TextBox can be added at design-time using the Floating Toolbar. Refer this topic for detailed information.

The image below depicts the floating toolbar of Ribbon TextBox.

Floating toolbar

Adding TextBox through Code

A TextBox can also be added to the C1Ribbon control through the code using the RibbonTextBox class. This is depicted in the code below:

' Add RibbonTextBox
Dim textBox As RibbonTextBox = New RibbonTextBox()
textBox.Text = "Sample Text"
formatGroup.Items.Add(textBox)
// Add Ribbon TextBox
RibbonTextBox textBox = new RibbonTextBox();
textBox.Text = "Sample Text";
formatGroup.Items.Add(textBox);