Udostępnij za pośrednictwem


ITextCharacterFormat Interface

Definition

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

public interface class ITextCharacterFormat
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1524560859, 1531, 17453, 128, 101, 100, 42, 254, 160, 44, 237)]
struct ITextCharacterFormat
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1524560859, 1531, 17453, 128, 101, 100, 42, 254, 160, 44, 237)]
public interface ITextCharacterFormat
Public Interface ITextCharacterFormat
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

AllCaps

Gets or sets whether the characters are all uppercase.

BackgroundColor

Gets or sets the text background (highlight) color.

Bold

Gets or sets whether the characters are bold.

FontStretch

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

FontStyle

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

ForegroundColor

Gets or sets the foreground, or text, color.

Hidden

Gets or sets whether characters are hidden.

Italic

Gets or sets whether characters are in italics.

Kerning

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

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

Gets the link type of the text.

Name

Gets or sets the font name.

Outline

Gets or sets whether characters are displayed as outlined characters.

Position

Gets or sets the character offset relative to the baseline.

ProtectedText

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

Size

Gets or sets the font size.

SmallCaps

Gets or sets whether characters are in small capital letters.

Spacing

Gets or sets the amount of horizontal spacing between characters.

Strikethrough

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

Subscript

Gets or sets whether characters are displayed as subscript.

Superscript

Gets or sets whether characters are displayed as superscript.

TextScript

Gets or sets the character repertoire.

Underline

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

Weight

Gets or sets the font weight of the characters.

Methods

GetClone()

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

IsEqual(ITextCharacterFormat)

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

SetClone(ITextCharacterFormat)

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

Applies to

See also