Application.IsDarkModeEnabled 屬性

定義

會取得一個值,表示應用程式是否在深色系統色彩情境中執行。

public:
 static property bool IsDarkModeEnabled { bool get(); };
public static bool IsDarkModeEnabled { get; }
[System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public static bool IsDarkModeEnabled { get; }
static member IsDarkModeEnabled : bool
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
static member IsDarkModeEnabled : bool
Public Shared ReadOnly Property IsDarkModeEnabled As Boolean

屬性值

屬性

備註

在高對比模式下,這總是會回傳 false

適用於