Table of Contents

Class TextFormatDataCl

Namespace
SunamoCl._public.SunamoData.Data
Assembly
SunamoCl.dll

Represents format data for text validation, containing a list of character format definitions and text-level constraints

public class TextFormatDataCl : List<CharFormatDataCl>, IList<CharFormatDataCl>, ICollection<CharFormatDataCl>, IReadOnlyList<CharFormatDataCl>, IReadOnlyCollection<CharFormatDataCl>, IEnumerable<CharFormatDataCl>, IList, ICollection, IEnumerable
Inheritance
TextFormatDataCl
Implements
Inherited Members
Extension Methods

Constructors

TextFormatDataCl(bool, int, params CharFormatDataCl[])

Initializes a new instance with the specified settings and character format definitions

public TextFormatDataCl(bool shouldTrimBefore, int requiredLength, params CharFormatDataCl[] charFormats)

Parameters

shouldTrimBefore bool

Whether to trim text before validation

requiredLength int

Required length of the text

charFormats CharFormatDataCl[]

Character format definitions for each position

Properties

RequiredLength

Gets or sets the required length of the text, or -1 if no length requirement

public int RequiredLength { get; set; }

Property Value

int

ShouldTrimBefore

Gets or sets whether the text should be trimmed before validation

public bool ShouldTrimBefore { get; set; }

Property Value

bool