VisualStyleRenderer.IsSupported Property

Definition

Gets a value specifying whether the operating system is using visual styles to draw controls.

public static bool IsSupported { get; }

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

Prodotto Versioni
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9