Struct MaskOption
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A filter which determines when to use a mask for a MultiMask.
public struct MaskOption : IEquatable<MaskOption>
- Implements
- Inherited Members
- Extension Methods
Remarks
Example: to use this mask when an input starts with 4
, use an expression of ^4
.
Constructors
MaskOption(string, string, string)
A filter which determines when to use a mask for a MultiMask.
public MaskOption(string Id, string Mask, string Regex)
Parameters
Id
stringThe unique name for this mask.
Mask
stringThe mask characters defining this mask.
Regex
stringThe regular expression which, when matched, causes this mask to be used.
Remarks
Example: to use this mask when an input starts with 4
, use an expression of ^4
.
Properties
Id
The unique name for this mask.
public string Id { readonly get; set; }
Property Value
Mask
The mask characters defining this mask.
public string Mask { readonly get; set; }
Property Value
Regex
The regular expression which, when matched, causes this mask to be used.
public string Regex { readonly get; set; }
Property Value
Methods
Deconstruct(out string, out string, out string)
public readonly void Deconstruct(out string Id, out string Mask, out string Regex)
Parameters
Equals(MaskOption)
public readonly bool Equals(MaskOption other)
Parameters
other
MaskOption
Returns
Equals(object)
public override readonly bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override readonly int GetHashCode()
Returns
ToString()
public override readonly string ToString()
Returns
Operators
operator ==(MaskOption, MaskOption)
public static bool operator ==(MaskOption left, MaskOption right)
Parameters
left
MaskOptionright
MaskOption
Returns
operator !=(MaskOption, MaskOption)
public static bool operator !=(MaskOption left, MaskOption right)
Parameters
left
MaskOptionright
MaskOption