System.Windows.Forms.VisualStyles.VisualStyleRenderer.SetParameters Method

Sets this System.Windows.Forms.VisualStyles.VisualStyleRenderer to the visual style element represented by the specified System.Windows.Forms.VisualStyles.VisualStyleElement.

Syntax

public void SetParameters (VisualStyleElement element)

Parameters

element
A System.Windows.Forms.VisualStyles.VisualStyleElement that specifies the new values of the VisualStyleRenderer.Class, VisualStyleRenderer.Part, and VisualStyleRenderer.State properties.

Remarks

This method checks the value of the VisualStyleRenderer.IsSupported property internally. Before calling this method, you should call the VisualStyleRenderer.IsElementDefined(VisualStyleElement) method to verify that the current visual style provides a definition for the element specified by the element parameter.

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