TextConstants TextConstants TextConstants Class

Definition

Defines a set of constants that are used with various methods in the Windows.UI.Text namespace.

public static class TextConstantspublic static class TextConstantsPublic Static Class TextConstants
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

AutoColor AutoColor AutoColor AutoColor

Gets the default color.

public static Color AutoColor { get; }public static Color AutoColor { get; }Public Static ReadOnly Property AutoColor As Colorpublic static Color AutoColor { get; }
Value
Color Color Color

The default color.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When a color argument has this value, the appropriate system default color is used.

MaxUnitCount MaxUnitCount MaxUnitCount MaxUnitCount

Gets the maximum unit count.

public static int MaxUnitCount { get; }public static int MaxUnitCount { get; }Public Static ReadOnly Property MaxUnitCount As intpublic static int MaxUnitCount { get; }
Value
int int int

The maximum unit count.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This value is used as a large positive count for the Move(TextRangeUnit, Int32), MoveEnd(TextRangeUnit, Int32), and MoveStart(TextRangeUnit, Int32) methods.

MinUnitCount MinUnitCount MinUnitCount MinUnitCount

Gets the minimum unit count.

public static int MinUnitCount { get; }public static int MinUnitCount { get; }Public Static ReadOnly Property MinUnitCount As intpublic static int MinUnitCount { get; }
Value
int int int

The minimum unit count.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This value is used as a large negative count for the Move(TextRangeUnit, Int32), MoveEnd(TextRangeUnit, Int32), and MoveStart(TextRangeUnit, Int32) methods.

UndefinedColor UndefinedColor UndefinedColor UndefinedColor

Gets the undefined color value.

public static Color UndefinedColor { get; }public static Color UndefinedColor { get; }Public Static ReadOnly Property UndefinedColor As Colorpublic static Color UndefinedColor { get; }
Value
Color Color Color

The undefined color.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When retrieving a character-format color property, this value indicates that a range has at least two text runs with different values of that character-format color property. When setting a character-format color property, this value indicates that the property is undefined; that is, it will not be applied if the ITextCharacterFormat is applied to a range. This value is used with properties such as BackgroundColor.

UndefinedFloatValue UndefinedFloatValue UndefinedFloatValue UndefinedFloatValue

Gets the undefined floating-point value.

public static float UndefinedFloatValue { get; }public static float UndefinedFloatValue { get; }Public Static ReadOnly Property UndefinedFloatValue As floatpublic static float UndefinedFloatValue { get; }
Value
float float float

The undefined floating-point value.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When retrieving a floating-point format property, this value indicates that a range has at least two text runs with different values of that property. When setting such a property, this value indicates that the property is undefined; that is, it will not be applied if the ITextCharacterFormat or ITextParagraphFormat is applied to a range. This value is used with properties such as Size.

UndefinedFontStretch UndefinedFontStretch UndefinedFontStretch UndefinedFontStretch

Gets the undefined font stretch value.

public static FontStretch UndefinedFontStretch { get; }public static FontStretch UndefinedFontStretch { get; }Public Static ReadOnly Property UndefinedFontStretch As FontStretchpublic static FontStretch UndefinedFontStretch { get; }
Value
FontStretch FontStretch FontStretch

The undefined font stretch value.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When retrieving the font-stretch property, this value indicates that a range has at least two text runs with different values of that property. When setting a font-stretch property, this value indicates that the property is undefined; that is, it will not be applied if the ITextCharacterFormat is applied to a range. This value is used with the FontStretch property.

UndefinedFontStyle UndefinedFontStyle UndefinedFontStyle UndefinedFontStyle

Gets the undefined font style.

public static FontStyle UndefinedFontStyle { get; }public static FontStyle UndefinedFontStyle { get; }Public Static ReadOnly Property UndefinedFontStyle As FontStylepublic static FontStyle UndefinedFontStyle { get; }
Value
FontStyle FontStyle FontStyle

The undefined font style.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When retrieving the font-style property, this value indicates that a range has at least two text runs with different values of that property. When setting the font-style property, this value indicates that the property is undefined; that is, it will not be applied if the ITextCharacterFormat is applied to a range. This value is used with the FontStyle property.

UndefinedInt32Value UndefinedInt32Value UndefinedInt32Value UndefinedInt32Value

Gets the undefined 32-bit integer value.

public static int UndefinedInt32Value { get; }public static int UndefinedInt32Value { get; }Public Static ReadOnly Property UndefinedInt32Value As intpublic static int UndefinedInt32Value { get; }
Value
int int int

The undefined 32-bit integer value.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

When retrieving an integer format property, this value indicates that a range has at least two text runs with different values of that property. When setting such a property, this value indicates that the property is undefined; that is, it will not be applied if the ITextCharacterFormat or ITextParagraphFormat is applied to a range. This value is used with properties such as ListStart.