[]
▸ getNamedPatterns(): INamedPattern
[]
Get all named patterns.
static
returns all the named patterns.
▸ namedPattern(name
, pattern?
): string
| void
Set or get named pattern.
static
Name | Type | Description |
---|---|---|
name |
string |
The name of pattern string. |
pattern? |
null | string |
- |
string
| void
if no pattern is set, returns the pattern string of the name, otherwise returns void.
▸ validatePattern(pattern
): IValidatePatternResult
Verify whether the pattern is valid.
static
example
let verifyResult = GC.Spread.Sheets.InputMask.validatePattern('[a0_]{8}');
Name | Type | Description |
---|---|---|
pattern |
string |
The pattern string. |
returns the verified result.