VisualStyleRenderer.IsSupported 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 a value specifying whether the operating system is using visual styles to draw controls.
public:
static property bool IsSupported { bool get(); };
public static bool IsSupported { get; }
static member IsSupported : bool
Public Shared ReadOnly Property IsSupported As Boolean
Property Value
true
if the operating system supports visual styles, the user has enabled visual styles in the operating system, and visual styles are applied to the client area of application windows; otherwise, false
.
Remarks
The following table describes how to individually check for each of the three conditions that must exist for the IsSupported property to return true
.
Condition | How to determine separately |
---|---|
The operating system supports visual styles. | Verify that the IsSupportedByOS property of the VisualStyleInformation class is true . |
The user has enabled visual styles in the operating system. | Verify that the IsEnabledByUser property of the VisualStyleInformation class is true . |
Visual styles are being used to draw the client area of application windows. | Verify that the VisualStyleState property of the Application class has the value VisualStyleState.ClientAreaEnabled or VisualStyleState.ClientAndNonClientAreasEnabled. |
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET