VisualStyleElement.Part Property


Gets a value indicating the part of the visual style element that this VisualStyleElement represents.

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

public int Part { get; }

Property Value

Type: System.Int32

A value that represents the part of a visual style element.

A part is a discrete member of a class of visual style elements. For example, visual style elements that represent a check box, radio button, and push button are all considered parts of the "BUTTON" class.

Part values are integers that range from 1 to the number of parts defined for a particular class. For more information on visual style classes, parts, and states, see "Parts and States" in the Windows Shell documentation at

.NET Framework
Available since 2.0
Return to top