Table of Contents

Class BlockMask

Namespace
MudBlazor
Assembly
MudBlazor.dll

A mask consisting of contiguous sets of characters.

public class BlockMask : RegexMask, IMask
Inheritance
BlockMask
Implements
Inherited Members
Extension Methods

Remarks

This mask is typically used for text which consists of blocks of letters and numbers, such as a flight number (e.g. LH4234) or product code (e.g. SKU1920).

Constructors

BlockMask(params Block[])

Creates a new block mask.

public BlockMask(params Block[] blocks)

Parameters

blocks Block[]

The blocks which define this mask.

Remarks

This mask is typically used for text which consists of blocks of letters and numbers, such as a flight number (e.g. LH4234) or product code (e.g. SKU1920).

BlockMask(string, params Block[])

Creates a new block mask.

public BlockMask(string delimiters, params Block[] blocks)

Parameters

delimiters string

The characters which are skipped over when entering new characters.

blocks Block[]

The blocks which define this mask.

Remarks

This mask is typically used for text which consists of blocks of letters and numbers, such as a flight number (e.g. LH4234) or product code (e.g. SKU1920).

Properties

Blocks

The sets of characters used to build this mask.

public Block[] Blocks { get; protected set; }

Property Value

Block[]

Methods

BuildRegex(Block[])

Creates a regular expression from the specified blocks.

protected virtual string BuildRegex(Block[] blocks)

Parameters

blocks Block[]

The list of blocks to combine into an expression.

Returns

string

A progressive regular expression which represents all of the blocks.

InitInternals()

Initializes this mask's characters and delimiters.

protected override void InitInternals()

InitRegex()

Initializes the regular expression.

protected override void InitRegex()

UpdateFrom(IMask)

Copies the mask and mask characters from the specified mask.

public override void UpdateFrom(IMask other)

Parameters

other IMask

The mask to copy from.

See Also