ITextCharacterFormat 介面

定義

定義檔的預設字元格式屬性,或文字範圍的目前字元格式設定屬性。

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
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

AllCaps

取得或設定字元是否全部為大寫。

BackgroundColor

取得或設定文字背景 (醒目提示) 色彩。

Bold

取得或設定字元是否為粗體。

FontStretch

取得或設定與字型的一般外觀比例相較之下,要延伸字型的程度。

FontStyle

取得或設定字型臉部的樣式,例如一般或斜體。

ForegroundColor

取得或設定前景、文字、色彩。

Hidden

取得或設定是否隱藏字元。

Italic

取得或設定字元是否為斜體。

Kerning

取得或設定發生 Kerning 的最小字型大小。

LanguageTag

取得或設定 Internet Engineering Task Force (IETF) 語言標記, (BCP 47 標準) ,識別目前與字元相關聯的語言。

LinkType

取得文字的連結類型。

Name

取得或設定字型名稱。

Outline

取得或設定字元是否顯示為大綱字元。

Position

取得或設定相對於基準的字元位移。

ProtectedText

取得或設定字元是否受到保護,以防止嘗試修改字元。

Size

取得或設定字型大小。

SmallCaps

取得或設定字元是否為小寫字母。

Spacing

取得或設定字元之間的水準間距量。

Strikethrough

取得或設定字元是否以水平線顯示到中央。

Subscript

取得或設定字元是否顯示為下標。

Superscript

取得或設定字元是否顯示為上標。

TextScript

取得或設定字元 Repertoire。

Underline

取得或設定字元所使用的底線類型。

Weight

取得或設定字元的字型粗細。

方法

GetClone()

建立與這個字元格式物件相同的新 物件。

IsEqual(ITextCharacterFormat)

判斷這個字元格式物件是否具有與指定之字元格式物件相同的屬性。

SetClone(ITextCharacterFormat)

藉由複製另一個文字字元格式物件來設定字元格式設定。

適用於

另請參閱