Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual TextBoxMaskBox MaskBox { get; }

Property Value

Type Description
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).

TextBox

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