Font.IsSystemFont Font.IsSystemFont Font.IsSystemFont Font.IsSystemFont Property

定義

取得值,指示字型是否為 SystemFonts 的成員。Gets a value indicating whether the font is a member of SystemFonts.

public:
 property bool IsSystemFont { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsSystemFont { get; }
member this.IsSystemFont : bool
Public ReadOnly Property IsSystemFont As Boolean

屬性值

如果字型是 SystemFonts 的成員,則為 true;否則為 falsetrue if the font is a member of SystemFonts; otherwise, false. 預設為 falseThe default is false.

備註

當使用者變更系統字型IsSystemFont時, 即使字型實際上不是系統字型, 屬性仍true會傳回。When the user changes the system font, the IsSystemFont property could return true, even if the font is not actually a system font. 若要避免這種情況, 如果您在應用程式中使用系統字型, 您應該藉由處理UserPreferenceChangingUserPreferenceChanged事件來追蹤使用者喜好設定變更。To avoid this situation, if you are using system fonts in your application, you should track user preference changes by handling the UserPreferenceChanging or UserPreferenceChanged event.

適用於