SystemFonts 類別

定義

指定用於顯示 Windows 顯示項目中文字的字型。Specifies the fonts used to display text in Windows display elements.

public ref class SystemFonts sealed
public sealed class SystemFonts
type SystemFonts = class
Public NotInheritable Class SystemFonts
繼承
SystemFonts

備註

SystemFonts 類別Font的每個屬性都會傳回, 用來在特定的 Windows 顯示專案中顯示文字, 例如視窗的標題列。Each property of the SystemFonts class returns a Font used to display text in a particular Windows display element, such as the title bar of a window. 這些字型會反映 [控制台] 中的目前設定。These fonts reflect the current settings in Control Panel.

屬性

CaptionFont

取得 Font,用於顯示視窗標題列中的文字。Gets a Font that is used to display text in the title bars of windows.

DefaultFont

取得應用程式可用於對話方塊和表單的預設字型。Gets the default font that applications can use for dialog boxes and forms.

DialogFont

取得應用程式可用於對話方塊和表單的字型。Gets a font that applications can use for dialog boxes and forms.

IconTitleFont

取得 Font,用於圖示標題。Gets a Font that is used for icon titles.

MenuFont

取得 Font,用於功能表。Gets a Font that is used for menus.

MessageBoxFont

取得 Font,用於訊息方塊。Gets a Font that is used for message boxes.

SmallCaptionFont

取得 Font,用於顯示小型視窗標題列中的文字,例如工具視窗。Gets a Font that is used to display text in the title bars of small windows, such as tool windows.

StatusFont

取得 Font,用於顯示狀態列中的文字。Gets a Font that is used to display text in the status bar.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetFontByName(String)

傳回字型物件,對應至指定的系統字型名稱。Returns a font object that corresponds to the specified system font name.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於