MaskedTextBox::TextLength Property
.NET Framework (current version)
Gets the length of the displayed text.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property int TextLength { virtual int get() override; }
Property Value
Type: System::Int32An 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
Available since 2.0
Show: