TextDecorationFlags Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
[System.Flags]
public enum TextDecorationFlags
- Inheritance
-
System.EnumTextDecorationFlags
- Attributes
-
System.FlagsAttribute
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. |
מוצר | גירסאות |
---|---|
Xamarin Community Toolkit | Latest |