Skip to main content
A newer version of this page is available. .

TextEdit.MaskBox Property

Gets the text box that provides text editing functionality.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll


public virtual TextBoxMaskBox MaskBox { get; }

Property Value

Type Description

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


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.

See Also