Class CharFormatDataCl
- Namespace
- SunamoCl._public.SunamoData.Data
- Assembly
- SunamoCl.dll
Represents format data for a single character position, defining constraints like allowed characters and case
public class CharFormatDataCl
- Inheritance
-
CharFormatDataCl
- Inherited Members
- Extension Methods
Constructors
CharFormatDataCl()
Initializes a new instance with default values
public CharFormatDataCl()
CharFormatDataCl(bool?, char[])
Initializes a new instance with the specified case and allowed characters
public CharFormatDataCl(bool? upper, char[] mustBe)
Parameters
Properties
FromTo
Gets or sets the range constraint for the character position
public FromToCl FromTo { get; set; }
Property Value
MustBe
Gets or sets the array of allowed characters for this position
public char[] MustBe { get; set; }
Property Value
- char[]
Upper
Gets or sets whether the character must be uppercase (true), lowercase (false), or any case (null)
public bool? Upper { get; set; }
Property Value
- bool?
Methods
Get(bool?, FromToCl, params char[])
Creates a CharFormatDataCl with the specified case, range, and allowed characters
public static CharFormatDataCl Get(bool? upper, FromToCl fromTo, params char[] mustBe)
Parameters
upperbool?Whether the character must be uppercase
fromToFromToClRange constraint for the character position
mustBechar[]Array of allowed characters
Returns
- CharFormatDataCl
A configured CharFormatDataCl instance
GetOnlyNumbers(FromToCl)
Creates a CharFormatDataCl configured to accept only numeric characters within the specified length range
public static CharFormatDataCl GetOnlyNumbers(FromToCl requiredLength)
Parameters
requiredLengthFromToClRange constraint for the number of numeric characters
Returns
- CharFormatDataCl
A configured CharFormatDataCl for numeric-only input