Fonts 類別

定義

提供 FontFamilyTypeface 物件的列舉支援。

public ref class Fonts abstract sealed
public static class Fonts
type Fonts = class
Public Class Fonts
繼承
Fonts

備註

字型系列是一組具有相同字樣的字型,例如 Arial,但功能不同。 這些功能差異包括 Style ,例如斜體和 Weight ,例如粗體。

字
「Times New Roman」 字型系列成員的字樣範例

屬性

SystemFontFamilies

從預設系統字型位置取得 FontFamily 物件的集合。

SystemTypefaces

從預設系統字型位置取得 Typeface 物件的集合。

方法

GetFontFamilies(String)

從表示字型位置的字串值傳回 FontFamily 物件的集合。

GetFontFamilies(Uri)

從表示字型位置的統一資源識別項 (URI) 值,傳回 FontFamily 物件的集合。

GetFontFamilies(Uri, String)

使用基底統一資源識別項值傳回 FontFamily 物件的集合以解析字型位置。

GetTypefaces(String)

從表示字型目錄位置的字串值傳回 Typeface 物件的集合。

GetTypefaces(Uri)

從代表字型位置的統一資源識別項 (URI) 值,傳回 Typeface 物件的集合。

GetTypefaces(Uri, String)

使用基底統一資源識別項值傳回 Typeface 物件的集合以解析字型位置。

適用於

另請參閱