[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.MaskPatternField.-ctor

MaskPatternField Constructor

MaskPatternField()

Initializes a new instance of the MaskPatternField class.

Declaration
public MaskPatternField()
Public Sub New()

MaskPatternField(string, int, int)

Initializes a new instance of the MaskPatternField class.

Declaration
public MaskPatternField(string pattern, int minLength, int maxLength)
Public Sub New(pattern As String, minLength As Integer, maxLength As Integer)
Parameters
Type Name Description
string pattern

A string value indicates the pattern.

int minLength

An int value indicates the minimum length.

int maxLength

An int value indicates the maximum length.

Exceptions
Type Condition
ArgumentNullException

When pattern is null.

ArgumentOutOfRangeException

When minLength or maxLength is less than 0;
Or when maxLength is greater than MaxValue.

ArgumentException

When minLength is greater than maxLength. Or when pattern is not valid.