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


In This Topic
    GcMask Class
    In This Topic
    Represents an editor control with specified format which can be user-defined.
    Object Model
    GcMask Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <StyleTypedPropertyAttribute(Property="SpinButtonStyle", StyleTargetType=GrapeCity.Wpf.SpreadSheet.CellType.Editors.SpinButton)>
    <LicenseProviderAttribute(GrapeCity.Common.SpreadLicenseProvider)>
    <TemplateVisualStateAttribute(GroupName="SpinButtonStates", Name="SpinButtonCollapsed")>
    <TemplatePartAttribute(Name="PART_ContentHost", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldsPresenter)>
    <LocalizabilityAttribute(LocalizationCategory.Text)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class GcMask 
       Inherits FieldsEditorControl
    'Usage
     
    Dim instance As GcMask
    [DesignTimeVisible(false)]
    [StyleTypedProperty(Property="SpinButtonStyle", StyleTargetType=GrapeCity.Wpf.SpreadSheet.CellType.Editors.SpinButton)]
    [LicenseProvider(GrapeCity.Common.SpreadLicenseProvider)]
    [TemplateVisualState(GroupName="SpinButtonStates", Name="SpinButtonCollapsed")]
    [TemplatePart(Name="PART_ContentHost", Type=GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldsPresenter)]
    [Localizability(LocalizationCategory.Text)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class GcMask : FieldsEditorControl 
    Remarks

    Users can add different GrapeCity.Windows.InputMan.Fields.MaskField to GcMask to set up various format for purpose. It support text filter field, literal display field and enumeration selection field.

    Users can also display watermark string for tips to notify current GcMask status. By setting WatermarkNull and WatermarkDisplayNull, users can show different strings when GcMask has a null reference (Nothing in Visual Basic) content.

    Supported System.Windows.VisualState list:

    l

    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

    ReadOnly

    Represents the visual appearance when IsReadOnly is true.

    CommonStates

    MouseOver

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

    ActiveStates

    Active

    Represents the visual appearance when IsActive is true.

    ActiveStates

    Inactive

    Represents the visual appearance when IsActive is false.

    InputStates

    Full

    Represents the visual appearance when FieldsEditorControl.IsFull is true.

    InputStates

    Completed

    Represents the visual appearance when FieldsEditorControl.IsCompleted is true.

    InputStates

    Empty

    Represents the visual appearance when FieldsEditorControl.IsEmpty is true.

    InputStates

    Part

    Represents the visual appearance when FieldsEditorControl.IsFull, FieldsEditorControl.IsCompleted and FieldsEditorControl.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.ControlBase
                            GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase
                               GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldsEditorControl
                                  GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcMask

    See Also