SystemColors.UseAlternativeColorSet 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示是否使用替代顏色集合。
public:
static property bool UseAlternativeColorSet { bool get(); void set(bool value); };
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5002", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static bool UseAlternativeColorSet { get; set; }
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5002", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member UseAlternativeColorSet : bool with get, set
Public Shared Property UseAlternativeColorSet As Boolean
屬性值
當 true時,系統KnownColor值會回傳備用顏色集(由靜力學或 FromKnownColor(KnownColor)返回SystemColors)。 目前這是系統顏色的「深色模式」變體。
- 屬性
備註
KnownColor Color 每次使用值時都會被查詢,且不會保留其他上下文。 因此,當設定此屬性時,現有 Color 的數值會改變。
在 Windows 上,系統 KnownColor 值在作業系統啟用高對比主題時,總是回傳當前的 Windows 色彩。