WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MaskEditor - WPF API Reference | Syncfusion PropertyGrid. ">

    Show / Hide Table of Contents

    Class MaskEditor

    Provides input mask, which is used to restricts the data input for a property in PropertyGrid.

    Inheritance
    System.Object
    BaseTypeEditor
    MaskEditor
    Implements
    ITypeEditor
    Inherited Members
    BaseTypeEditor.CreatePropertyInfoBinding(PropertyItem, Control)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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
    BaseTypeEditor.Attach(PropertyViewItem, PropertyItem)

    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
    BaseTypeEditor.Create(PropertyDescriptor)

    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
    BaseTypeEditor.Create(PropertyInfo)

    Detach(PropertyViewItem)

    Represents the detach method

    Declaration
    public override void Detach(PropertyViewItem property)
    Parameters
    Type Name Description
    PropertyViewItem property

    The propertyviewitem

    Overrides
    BaseTypeEditor.Detach(PropertyViewItem)

    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.

    Overrides
    BaseTypeEditor.ShouldPropertyGridTryToHandleKeyDown(Key)

    Implements

    ITypeEditor
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved