Class MaskEditor
Provides input mask, which is used to restricts the data input for a property in PropertyGrid.
Implements
Inherited Members
Namespace: Syncfusion.Windows.PropertyGrid
Assembly: Syncfusion.PropertyGrid.Wpf.dll
Syntax
public class MaskEditor : BaseTypeEditor, ITypeEditor
Constructors
MaskEditor()
Create and initializes a new instance of the MaskEditor class.
Declaration
public MaskEditor()
Properties
Mask
Gets or sets the mask for MaskEditor.
Declaration
public string Mask { get; set; }
Property Value
Type | Description |
---|---|
System.String | The mask value. |
Methods
Attach(PropertyViewItem, PropertyItem)
Represents the Attach method
Declaration
public override void Attach(PropertyViewItem property, PropertyItem info)
Parameters
Type | Name | Description |
---|---|---|
PropertyViewItem | property | The propertyviewitem |
PropertyItem | info | The propertyitem |
Overrides
Create(PropertyDescriptor)
Creates and initializes a new instance of the custom editor. This method will be called for properties of type dynamic, ExpandoObject or ICustomTypeDescriptor.
Declaration
public override object Create(PropertyDescriptor PropertyDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.PropertyDescriptor | PropertyDescriptor | The PropertyDescriptor |
Returns
Type | Description |
---|---|
System.Object | The MaskEditor |
Overrides
Create(PropertyInfo)
Creates and initializes a new instance of the built-in editor.
Declaration
public override object Create(PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | propertyInfo | The PropertyInformation |
Returns
Type | Description |
---|---|
System.Object | The MaskEditor |
Overrides
Detach(PropertyViewItem)
Represents the detach method
Declaration
public override void Detach(PropertyViewItem property)
Parameters
Type | Name | Description |
---|---|---|
PropertyViewItem | property | The propertyviewitem |
Overrides
ShouldPropertyGridTryToHandleKeyDown(Key)
Overrides the handling of keydown event. If the method returns true, PropertyGrid handles the KeyDown event and focus will be moved to next focusable editor, otherwise the event will not handle by the PropertyGrid.
Declaration
public override bool ShouldPropertyGridTryToHandleKeyDown(Key key)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.Key | key | A System.Windows.Input.KeyEventArgs object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the property grid should be allowed to handle keys; false otherwise. |