System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsSupported Property

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

Syntax

public static bool IsSupported { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The following table describes how to individually check for each of the three conditions that must exist for the VisualStyleRenderer.IsSupported property to return true.

The operating system supports visual styles.

Verify that the VisualStyleInformation.IsSupportedByOS property of the System.Windows.Forms.VisualStyles.VisualStyleInformation class is true.

The user has enabled visual styles in the operating system.

Verify that the VisualStyleInformation.IsEnabledByUser property of the System.Windows.Forms.VisualStyles.VisualStyleInformation class is true.

Visual styles are being used to draw the client area of application windows.

Verify that the System.Windows.Forms.Application.VisualStyleState property of the System.Windows.Forms.Application class has the value VisualStyleState.ClientAreaEnabled or VisualStyleState.ClientAndNonClientAreasEnabled.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0