ITextCharacterFormat ITextCharacterFormat ITextCharacterFormat ITextCharacterFormat Interface

Definition

Defines the default character formatting attributes of a document, or the current character formatting attributes of a text range.

public : interface ITextCharacterFormat
struct winrt::Windows::UI::Text::ITextCharacterFormat
public interface ITextCharacterFormat
Public Interface ITextCharacterFormat
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

AllCaps AllCaps AllCaps AllCaps

Gets or sets whether the characters are all uppercase.

BackgroundColor BackgroundColor BackgroundColor BackgroundColor

Gets or sets the text background (highlight) color.

Bold Bold Bold Bold

Gets or sets whether the characters are bold.

FontStretch FontStretch FontStretch FontStretch

Gets or sets the degree to which the font is stretched, compared to the normal aspect ratio of the font.

FontStyle FontStyle FontStyle FontStyle

Gets or sets the style of the font face, such as normal or italic.

ForegroundColor ForegroundColor ForegroundColor ForegroundColor

Gets or sets the foreground, or text, color.

Hidden Hidden Hidden Hidden

Gets or sets whether characters are hidden.

Italic Italic Italic Italic

Gets or sets whether characters are in italics.

Kerning Kerning Kerning Kerning

Gets or sets the minimum font size at which kerning occurs.

LanguageTag LanguageTag LanguageTag LanguageTag

Gets or sets the Internet Engineering Task Force (IETF) language tag (BCP 47 standard) that identifies the language currently associated with the characters.

LinkType LinkType LinkType LinkType

Gets the link type of the text.

Name Name Name Name

Gets or sets the font name.

Outline Outline Outline Outline

Gets or sets whether characters are displayed as outlined characters.

Position Position Position Position

Gets or sets the character offset relative to the baseline.

ProtectedText ProtectedText ProtectedText ProtectedText

Gets or sets whether the characters are protected against attempts to modify them.

Size Size Size Size

Gets or sets the font size.

SmallCaps SmallCaps SmallCaps SmallCaps

Gets or sets whether characters are in small capital letters.

Spacing Spacing Spacing Spacing

Gets or sets the amount of horizontal spacing between characters.

Strikethrough Strikethrough Strikethrough Strikethrough

Gets or sets whether characters are displayed with a horizontal line through the center.

Subscript Subscript Subscript Subscript

Gets or sets whether characters are displayed as subscript.

Superscript Superscript Superscript Superscript

Gets or sets whether characters are displayed as superscript.

TextScript TextScript TextScript TextScript

Gets or sets the character repertoire.

Underline Underline Underline Underline

Gets or sets the type of underlining that the characters use.

Weight Weight Weight Weight

Gets or sets the font weight of the characters.

Methods

GetClone() GetClone() GetClone() GetClone()

Creates a new object that is identical to this character format object.

IsEqual(ITextCharacterFormat) IsEqual(ITextCharacterFormat) IsEqual(ITextCharacterFormat) IsEqual(ITextCharacterFormat)

Determines whether this character format object has the same properties as the specified character format object.

SetClone(ITextCharacterFormat) SetClone(ITextCharacterFormat) SetClone(ITextCharacterFormat) SetClone(ITextCharacterFormat)

Sets the character formatting by copying another text character formatting object.

See also