ToolStripTextBox.TextLength Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: