ToolStripTextBox.TextLength Property

 

Gets the length of text in the control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public int TextLength { get; }

Property Value

Type: System.Int32

The number of characters contained in the text of the ToolStripTextBox.

You can use the TextLength property to determine the number of characters in a string for tasks such as searching for specific strings of text within the text of the control, where knowledge of the total number of characters is needed.

.NET Framework
Available since 2.0
Return to top
Show: