PropertyMetadataBuilderExtensions.PhoneNumberDataType<T>(PropertyMetadataBuilder<T, String>, Func<String>) Method
Configures the property editor to display phone number values.
Namespace: DevExpress.Mvvm.DataAnnotations
Assembly: DevExpress.Mvvm.v24.1.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
Declaration
public static PropertyMetadataBuilder<T, string> PhoneNumberDataType<T>(
this PropertyMetadataBuilder<T, string> builder,
Func<string> errorMessageAccessor = null
)
Parameters
Name | Type | Description |
---|---|---|
builder | PropertyMetadataBuilder<T, String> | A property metadata builder. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
errorMessageAccessor | Func<String> | null | A function that returns an error message. |
Type Parameters
Name |
---|
T |
Returns
Type | Description |
---|---|
PropertyMetadataBuilder<T, String> | The property metadata builder instance. |
Remarks
The PhoneNumberDataType<T> property is recognized by the GridControl, TreeListControl, DataLayoutControl and PropertyGridControl.
Using the PhoneNumberDataType<T> method is equivalent to assigning the [DataType(DataType.PhoneNumber)] data annotation attribute to a data property.
See Also