System.Windows.Forms.TextBoxBase.TextLength Property

Gets the length of text in the control.

Syntax

[System.ComponentModel.Browsable(false)]
public virtual int TextLength { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this 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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0