ITextCharacterFormat Interface

Définit les attributs de mise en forme des caractères par défaut d'un document, ou les attributs de mise en forme des caractères actuels d'une plage de texte.

Syntaxe


public interface ITextCharacterFormat

Attributs

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

Membres

ITextCharacterFormatInterface possède ces types de membres :

Méthodes

The ITextCharacterFormat Interface a les méthodes suivantes. Elle hérite également des méthodes de Object Classe.

MéthodeDescription
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.

 

Propriétés

Le ITextCharacterFormatInterface a les propriétés suivantes.

PropriétéType d'accèsDescription

AllCaps

Lecture/écritureGets or sets whether the characters are all uppercase.

BackgroundColor

Lecture/écritureGets or sets the text background (highlight) color.

Bold

Lecture/écritureGets or sets whether the characters are bold.

FontStretch

Lecture/écritureGets or sets the degree to which the font is stretched, compared to the normal aspect ratio of the font.

FontStyle

Lecture/écritureGets or sets the style of the font face, such as normal or italic.

ForegroundColor

Lecture/écritureGets or sets the foreground, or text, color.

Hidden

Lecture/écritureGets or sets whether characters are hidden.

Italic

Lecture/écritureGets or sets whether characters are in italics.

Kerning

Lecture/écritureGets or sets the minimum font size at which kerning occurs.

LanguageTag

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

LinkType

En lecture seuleGets the link type of the text.

Name

Lecture/écritureGets or sets the font name.

Outline

Lecture/écritureGets or sets whether characters are displayed as outlined characters.

Position

Lecture/écritureGets or sets the character offset relative to the baseline.

ProtectedText

Lecture/écritureGets or sets whether the characters are protected against attempts to modify them.

Size

Lecture/écritureGets or sets the font size.

SmallCaps

Lecture/écritureGets or sets whether characters are in small capital letters.

Spacing

Lecture/écritureGets or sets the amount of horizontal spacing between characters.

Strikethrough

Lecture/écritureGets or sets whether characters are displayed with a horizontal line through the center.

Subscript

Lecture/écritureGets or sets whether characters are displayed as subscript.

Superscript

Lecture/écritureGets or sets whether characters are displayed as superscript.

TextScript

Lecture/écritureGets or sets the character repertoire.

Underline

Lecture/écritureGets or sets the type of underlining that the characters use.

Weight

Lecture/écritureGets or sets the font weight of the characters.

 

Conditions requises

Client minimal pris en charge

Windows 8

Serveur minimal pris en charge

Windows Server 2012

Espace de noms

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

Métadonnées

Windows.winmd

Voir aussi

ITextDocument.GetDefaultCharacterFormat
ITextDocument.SetDefaultCharacterFormat
ITextRange.CharacterFormat

 

 

Afficher:
© 2014 Microsoft