Back to Devexpress

TextEdit.MaskBox Property

windowsforms-devexpress-dot-xtraeditors-dot-textedit-6a735b2b.md

latest2.7 KB
Original Source

TextEdit.MaskBox Property

Gets the text box that provides text editing functionality, or null (Nothing in VB.NET) if the editor is in Advanced Mode.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual TextBoxMaskBox MaskBox { get; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable ReadOnly Property MaskBox As TextBoxMaskBox

Property Value

TypeDescription
DevExpress.XtraEditors.TextBoxMaskBox

A DevExpress.XtraEditors.TextBoxMaskBox object that represents the editor’s text box.

|

Remarks

Text editors in the XtraEditors library are represented by the TextEdit class and its descendants. Internally, each DevExpress text editor owns a text box that implements the text input functionality. A text editor, which is a wrapper for a text box, adds additional elements to the text box (borders and buttons).

The MaskBox property allows you to get an editor’s text box.

The text box is represented by the DevExpress.XtraEditors.TextBoxMaskBox class, which is the TextBox control’s descendant. Typically, you do need to work with DevExpress.XtraEditors.TextBoxMaskBox controls directly. In specific cases, however, this control can be retrieved by certain functions; for example, when a text editor is focused, the form’s ActiveControl property will return the editor’s text box (a DevExpress.XtraEditors.TextBoxMaskBox object) rather than the editor itself. To get the editor, read the text box’s Parent property.

The MaskBox property returns null (Nothing in VB.NET) if the editor is in Advanced Mode.

See Also

MaskBoxPadding

TextEdit Class

TextEdit Members

DevExpress.XtraEditors Namespace