Class GridMaskEditInfo
Provides a StyleInfoSubObjectBase object for masked edit properties in a cell.
Each property in this sub object can be configured individually. Properties that have not been initialized will inherit default values from a base style.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridMaskEditInfo : StyleInfoSubObjectBase, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
GridMaskEditInfo()
Initializes a new empty GridMaskEditInfo object.
Declaration
public GridMaskEditInfo()
GridMaskEditInfo(StyleInfoSubObjectIdentity)
Initalizes a new GridMaskEditInfo object and associates it with an existing
Declaration
public GridMaskEditInfo(StyleInfoSubObjectIdentity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoSubObjectIdentity | identity | A |
GridMaskEditInfo(StyleInfoSubObjectIdentity, GridMaskEditInfoStore)
Initalizes a new GridMaskEditInfo object and associates it with an existing
Declaration
public GridMaskEditInfo(StyleInfoSubObjectIdentity identity, GridMaskEditInfoStore store)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoSubObjectIdentity | identity | A |
| GridMaskEditInfoStore | store | A GridMaskEditInfoStore that holds data for this GridMaskEditInfo. All changes in this style object will be saved in the GridMaskEditInfoStore object. |
Properties
CurrencySymbol
Use this property to define the CurrencySymbol string for the MaskedTextBox control.
Declaration
public string CurrencySymbol { get; set; }
Property Value
| Type |
|---|
| System.String |
DateSeparator
Use this property to define the date separator for the MaskedEditBox control.
Declaration
public string DateSeparator { get; set; }
Property Value
| Type |
|---|
| System.String |
DecimalSeparator
Use this property to define the decimal separator for the MaskedEditBox control.
Declaration
public string DecimalSeparator { get; set; }
Property Value
| Type |
|---|
| System.String |
Default
Returns a default GridMaskEditInfo to be used with a default style.
Declaration
public static GridMaskEditInfo Default { get; }
Property Value
| Type | Description |
|---|---|
| GridMaskEditInfo | The default. |
Remarks
The Default of the GridStyleInfo class will return the validation info that this method generates through its overriden version of GetDefaultStyle().
Default settings are:
| Property | Value |
|---|---|
| DateSeparator | '/' |
| DecimalSeparator | '.' |
| Mask | String.Empty |
| TimeSeparator | ':' |
HasCurrencySymbol
Checks if the CurrencySymbol property is initialized.
Declaration
public bool HasCurrencySymbol { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasDateSeparator
Checks if the DateSeparator property is initialized.
Declaration
public bool HasDateSeparator { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasDecimalSeparator
Checks if the DecimalSeparator property is initialized.
Declaration
public bool HasDecimalSeparator { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasMask
Checks if the Mask property is initialized.
Declaration
public bool HasMask { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasMaxLength
Checks if the MaxLength property is initialized.
Declaration
public bool HasMaxLength { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasMinLength
Checks if the MinLength property is initialized.
Declaration
public bool HasMinLength { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasNumberGroupSeparator
Checks if the NumberGroupSeparator property is initialized.
Declaration
public bool HasNumberGroupSeparator { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasPromptChar
Checks if the PromptChar property is initialized.
Declaration
public bool HasPromptChar { get; }
Property Value
| Type |
|---|
| System.Boolean |
HasStringValidation
Gets a value indicating whether this instance has string validation.
Declaration
public bool HasStringValidation { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
HasTimeSeparator
Checks if the TimeSeparator property is initialized.
Declaration
public bool HasTimeSeparator { get; }
Property Value
| Type |
|---|
| System.Boolean |
Mask
Use this property to define the mask string for the MaskedEditBox control.
Declaration
public string Mask { get; set; }
Property Value
| Type |
|---|
| System.String |
MaxLength
Use this property to define the Maximum Length for the MaskedEditBox control.
Declaration
public int MaxLength { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
MinLength
Use this property to define the Minimum Length for the MaskedEditBox control.
Declaration
public int MinLength { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
NumberGroupSeparator
Use this property to define the number group separator for the MaskedEditBox control.
Declaration
public string NumberGroupSeparator { get; set; }
Property Value
| Type |
|---|
| System.String |
PromptChar
Use this property to define the PromptChar string for the MaskedTextBox control.
Declaration
public char PromptChar { get; set; }
Property Value
| Type |
|---|
| System.Char |
StringValidation
Gets or sets the String validation.
Declaration
public StringValidation StringValidation { get; set; }
Property Value
| Type | Description |
|---|---|
| StringValidation | The min validation. |
TimeSeparator
Use this property to define the time separator for the MaskedEditBox control.
Declaration
public string TimeSeparator { get; set; }
Property Value
| Type |
|---|
| System.String |
Methods
GetDefaultStyle()
Returns Default.
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
| Type | Description |
|---|---|
| StyleInfoBase | A GridMaskEditInfo object with default values. |
Overrides
MakeCopy(StyleInfoBase, StyleInfoProperty)
Makes an exact copy of the current object.
Declaration
public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoBase | newOwner | The new owner style object for the copied object. |
| StyleInfoProperty | sip | The identifier for this object. |
Returns
| Type | Description |
|---|---|
| IStyleInfoSubObject | The copy of the current object. |
Overrides
ResetCurrencySymbol()
Resets the CurrencySymbol property.
Declaration
public void ResetCurrencySymbol()
ResetDateSeparator()
Resets the DateSeparator property.
Declaration
public void ResetDateSeparator()
ResetDecimalSeparator()
Resets the DecimalSeparator property.
Declaration
public void ResetDecimalSeparator()
ResetMask()
Resets the Mask property.
Declaration
public void ResetMask()
ResetMaxLength()
Resets the MaxLength property.
Declaration
public void ResetMaxLength()
ResetMinLength()
Resets the MinLength property.
Declaration
public void ResetMinLength()
ResetNumberGroupSeparator()
Resets the NumberGroupSeparator property.
Declaration
public void ResetNumberGroupSeparator()
ResetPromptChar()
Resets the PromptChar property.
Declaration
public void ResetPromptChar()
ResetStringValidation()
Resets the string validation.
Declaration
public void ResetStringValidation()
ResetTimeSeparator()
Resets the TimeSeparator property.
Declaration
public void ResetTimeSeparator()
ShouldSerializeStringValidation()
Shoulds the serialize string validation.
Declaration
public bool ShouldSerializeStringValidation()
Returns
| Type |
|---|
| System.Boolean |