ITextCharacterFormat interface

Applies to Windows and Windows Phone

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

Syntax


public interface ITextCharacterFormat

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The ITextCharacterFormat interface has these types of members:

Methods

The ITextCharacterFormat interface has these methods. It also inherits methods from the Object class.

MethodDescription
GetClone Creates a new object that is identical to this character format object.
IsEqual Determines whether this character format object has the same properties as the specified character format object.
SetClone Sets the character formatting by copying another text character formatting object.

 

Properties

The ITextCharacterFormat interface has these properties.

PropertyAccess typeDescription

AllCaps

Read/writeGets or sets whether the characters are all uppercase.

BackgroundColor

Read/writeGets or sets the text background (highlight) color.

Bold

Read/writeGets or sets whether the characters are bold.

FontStretch

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

FontStyle

Read/writeGets or sets the style of the font face, such as normal or italic.

ForegroundColor

Read/writeGets or sets the foreground, or text, color.

Hidden

Read/writeGets or sets whether characters are hidden.

Italic

Read/writeGets or sets whether characters are in italics.

Kerning

Read/writeGets or sets the minimum font size at which kerning occurs.

LanguageTag

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

LinkType

Read-onlyGets the link type of the text.

Name

Read/writeGets or sets the font name.

Outline

Read/writeGets or sets whether characters are displayed as outlined characters.

Position

Read/writeGets or sets the character offset relative to the baseline.

ProtectedText

Read/writeGets or sets whether the characters are protected against attempts to modify them.

Size

Read/writeGets or sets the font size.

SmallCaps

Read/writeGets or sets whether characters are in small capital letters.

Spacing

Read/writeGets or sets the amount of horizontal spacing between characters.

Strikethrough

Read/writeGets or sets whether characters are displayed with a horizontal line through the center.

Subscript

Read/writeGets or sets whether characters are displayed as subscript.

Superscript

Read/writeGets or sets whether characters are displayed as superscript.

TextScript

Read/writeGets or sets the character repertoire.

Underline

Read/writeGets or sets the type of underlining that the characters use.

Weight

Read/writeGets or sets the font weight of the characters.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

See also

ITextDocument.GetDefaultCharacterFormat
ITextDocument.SetDefaultCharacterFormat
ITextRange.CharacterFormat

 

 

Show:
© 2014 Microsoft