TextDecorationFlags Enum

Definition

Flags to indicate what treatment Value should receive prior to validation with ValidationBehavior or subclasses. This can be used to trim or ignore whitespace for instance. This value might be ignored by a behavior if Value isn't of type System.String.

This enumeration supports a bitwise combination of its member values.

C#‎
[System.Flags]
public enum TextDecorationFlags
Inheritance
System.Enum
TextDecorationFlags
Attributes
System.FlagsAttribute

Fields

Name Value Description
None 0

No text decoration will be applied.

TrimStart 1

System.String.TrimStart(System.Char[]) is applied on the value prior to validation.

TrimEnd 2

System.String.TrimEnd(System.Char[]) is applied on the value prior to validation.

Trim 3

System.String.Trim is applied on the value prior to validation.

NullToEmpty 4

If Value is null, replace the value with System.String.Empty

NormalizeWhiteSpace 8

Excessive white space is removed from Value prior to validation. I.e. I.e. "Hello World" will become "Hello World". This applies to whitespace found anywhere.

Applies to

מוצר גירסאות
Xamarin Community Toolkit Latest