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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET