Skip to main content

DataLayoutItem.PhoneNumberMask Property

Gets or sets the mask for editing this DataLayoutItem‘s value, if this value is formatted as a phone number.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v24.1.dll

NuGet Package: DevExpress.Wpf.LayoutControl

Declaration

public static string PhoneNumberMask { get; set; }

Property Value

Type Description
String

A String value that is the edit mask for this DataLayoutItem.

Remarks

If certain data source properties are marked with the DataType attribute, editors generated for these properties will automatically format their values according to this attribute. For properties marked with the DataType.PhoneNumber attribute, the default “(000) 000-0000” edit mask is applied. Use the PhoneNumberMask property to modify this automatically applied mask.

See the Masked Input topic to learn more about formatting editor values.

See Also