System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsElementDefined Method

Determines whether the specified visual style element is defined by the current visual style.

Syntax

public static bool IsElementDefined (VisualStyleElement element)

Parameters

element
A System.Windows.Forms.VisualStyles.VisualStyleElement whose class and part combination will be verified.

Returns

true if the combination of the VisualStyleElement.ClassName and VisualStyleElement.Part properties of element are defined; otherwise, false.

Remarks

This method checks the value of the VisualStyleRenderer.IsSupported property internally.

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