Application.ColorMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the default color mode (dark mode) for the application.
public:
static property System::Windows::Forms::SystemColorMode ColorMode { System::Windows::Forms::SystemColorMode get(); };
[System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public static System.Windows.Forms.SystemColorMode ColorMode { get; }
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
static member ColorMode : System.Windows.Forms.SystemColorMode
Public Shared ReadOnly Property ColorMode As SystemColorMode
Property Value
- Attributes
Remarks
This is the SystemColorMode; which either has been set by SetColorMode(SystemColorMode) or its default value Classic. If it has been set to System, then the actual color mode is determined by the system settings (which can be retrieved by the static (shared in VB) SystemColorMode property.
Applies to
Arbeiten Sie mit uns auf GitHub zusammen
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.