VisualStyleElement.CreateElement Method (String, Int32, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new visual style element from the specified class, part, and state values.

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

public static VisualStyleElement CreateElement(
	string className,
	int part,
	int state
)

Parameters

className
Type: System.String

A string that represents the class name of the visual style element to be created.

part
Type: System.Int32

A value that represents the part of the visual style element to be created.

state
Type: System.Int32

A value that represents the state of the visual style element to be created.

Return Value

Type: System.Windows.Forms.VisualStyles.VisualStyleElement

A VisualStyleElement with the ClassName, Part, and State properties initialized to the className, part, and state parameters.

.NET Framework
Available since 2.0
Return to top
Show: