MaskedTextBox.TextLength Property

 
Use BaseTrue

Gets the length of the displayed text.

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

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

Property Value

Type: System.Int32

An Int32 representing the number of characters in the Text property. TextLength respects properties such as HidePromptOnLeave, which means that the return results may be different depending on whether the control has focus.

.NET Framework
Available since 2.0
Return to top
Show: