SystemFonts 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定用於顯示 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顯示元素中的文字,例如視窗的標題列。 這些字型反映 控制台 的當前設定。
Note
在 .NET 6 和更新版本中,只有 Windows作系統才支援包含此類型的 System.Drawing.Common 套件。 跨平台應用程式使用此類會引發編譯時警告及執行時異常。 如需詳細資訊,請參閱 僅限 Windows 上支援的 System.Drawing.Common。
屬性
| 名稱 | Description |
|---|---|
| CaptionFont |
會得到 Font 一個用來顯示視窗標題欄文字的 |
| DefaultFont |
取得應用程式可用於對話框和表單的預設字體。 |
| DialogFont |
會有一種字體,應用程式可以用來做對話框和表單。 |
| IconTitleFont |
會拿到 Font 一個用於圖示標題的 THAT。 |
| MenuFont |
拿到 Font 一個用來做菜單的。 |
| MessageBoxFont |
拿到 Font 一個用來做訊息框的。 |
| SmallCaptionFont |
取得 Font 一個用於顯示小視窗標題欄文字的 ,例如工具視窗。 |
| StatusFont |
會拿到 Font a 來顯示狀態列文字的 that。 |
方法
| 名稱 | Description |
|---|---|
| GetFontByName(String) |
回傳一個對應於指定系統字型名稱的字型物件。 |