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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기