SystemFonts 類別

定義

指定用於顯示 Windows 顯示項目中文字的字型。

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

備註

類別的每個屬性 SystemFonts 都會傳回 , Font 用來在特定 Windows 顯示專案中顯示文字,例如視窗的標題列。 這些字型會反映主控台中的目前設定。

注意

在 .NET 6 和更新版本中,只有 Windows 作業系統才支援包含此類型的 System.Drawing.Common 套件。 在跨平臺應用程式中使用此類型會導致編譯時間警告和執行時間例外狀況。 如需詳細資訊,請參閱 僅限 Windows 上支援的 System.Drawing.Common

屬性

CaptionFont

取得 Font,用於顯示視窗標題列中的文字。

DefaultFont

取得應用程式可用於對話方塊和表單的預設字型。

DialogFont

取得應用程式可用於對話方塊和表單的字型。

IconTitleFont

取得 Font,用於圖示標題。

MenuFont

取得 Font,用於功能表。

MessageBoxFont

取得 Font,用於訊息方塊。

SmallCaptionFont

取得 Font,用於顯示小型視窗標題列中的文字,例如工具視窗。

StatusFont

取得 Font,用於顯示狀態列中的文字。

方法

GetFontByName(String)

傳回字型物件,對應至指定的系統字型名稱。

適用於