Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / MaskPatternField Class
Members


In This Topic
    MaskPatternField Class
    In This Topic
    Represents GrapeCity.Windows.InputMan.Fields.MaskPatternField class which can filter input text based on pattern for GrapeCity.Windows.InputMan.GcMask.
    Object Model
    MaskPatternField Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <TemplatePartAttribute(Name="PART_ContentHost", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldContentPresenter)>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public NotInheritable Class MaskPatternField 
       Inherits MaskField
    'Usage
     
    Dim instance As MaskPatternField
    [DesignTimeVisible(false)]
    [TemplatePart(Name="PART_ContentHost", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldContentPresenter)]
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public sealed class MaskPatternField : MaskField 
    Remarks
    MaskPatternField support following patterns:
    Pattern Description
    \A \A Upper case DBCS alphabet (A-Z).
    \a \a Lower case DBCS alphabet (a-z).
    \D \D Matches any DBCS decimal digit. Same as [0-9].
    \B \B Matches DBCS binary. Same as [0-1].
    \X \X Matches DBCS hexadecimal. Same as [0-9A-Fa-f].
    \W \W Matches any DBCS word character. It is same as [a-zA-Z_0-9].
    \K \K DBCS Katakana.
    \J \J Hiragana.
    \Z \Z All DBCS characters.
    \N \N Matches DBCS big Katakana.
    \G \G Matches DBCS big Hiragana.
    \T \T Only surrogate char.
    \A \A Matches any upper case alphabet [A-Z].
    \a \a Matches any lower case alphabet [a-z].
    \D \D Matches any decimal digit. Same as [0-9].
    \B \B Matches binary. Same as [0-1].
    \X \X Matches hexadecimal. Same as [0-9A-Fa-f].
    \W \W Matches any word character. It is same as [a-zA-Z_0-9].
    \K \K SBCS Katakana.
    \H \H Matches all SBCS characters.
    \N \N Matches all SBCS big Katakana.
    When user set AutoConvert to false, the field doesn't convert the text into valid chars.

    Supported System.Windows.VisualState list:

    VisualStateGroup Name

    VisualState Name

    Description

    CommonStates

    Normal

    Represents the visual appearance when control is in normal state.

    CommonStates

    Disabled

    Represents the visual appearance when System.Windows.UIElement.IsEnabled is false.

    CommonStates

    MouseOver

    Represents the visual appearance when System.Windows.UIElement.IsMouseOver is true.

    ActiveStates

    Active

    Represents the visual appearance when Field.IsActive is true.

    ActiveStates

    Inactive

    Represents the visual appearance when Field.IsActive is false.

    InputStates

    Full

    Represents the visual appearance when Field.IsFull is true.

    InputStates

    Completed

    Represents the visual appearance when Field.IsCompleted is true.

    InputStates

    Empty

    Represents the visual appearance when Field.IsEmpty is true.

    InputStates

    Part

    Represents the visual appearance when Field.IsFull, Field.IsCompleted and Field.IsEmpty all are false.

    ValidationStates

    Valid

    Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns false.

    ValidationStates

    InvalidFocused

    Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and control has focus.

    ValidationStates

    InvalidUnfocused

    Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and control has no focus.

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         GrapeCity.Wpf.SpreadSheet.CellType.Editors.Field
                            GrapeCity.Wpf.SpreadSheet.CellType.Editors.MaskField
                               GrapeCity.Wpf.SpreadSheet.CellType.Editors.MaskPatternField

    See Also