Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VisualStyleRenderer.IsSupported Property

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

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public static bool IsSupported { get; }
/** @property */
public static boolean get_IsSupported ()

public static function get IsSupported () : boolean

Not applicable.

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.

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.