Table of Contents

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

upper bool?

Whether the character must be uppercase

mustBe char[]

Array of allowed characters

Properties

FromTo

Gets or sets the range constraint for the character position

public FromToCl FromTo { get; set; }

Property Value

FromToCl

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

upper bool?

Whether the character must be uppercase

fromTo FromToCl

Range constraint for the character position

mustBe char[]

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

requiredLength FromToCl

Range constraint for the number of numeric characters

Returns

CharFormatDataCl

A configured CharFormatDataCl for numeric-only input