TX Text Control .NET for Windows Forms

TextBoxWidth Property

Property|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the width, in 1/96 inch, of the text box. The default value is 50/96 inch.

Syntax

public int TextBoxWidth { get; set; }

Examples

The following example uses RibbonTextBox.TextBoxWidth to configure text box width as part of the ribbon text box workflow. The change is then applied to the active document or user interface.

ribbonTextBox.TextBoxWidth = 100;
ribbonTextBox.Update();