System.Windows.Forms
2.0.0.0
System.Object
The class identifies a Windows control or user interface (UI) element that is defined by the current visual style of the operating system. A visual style element is defined in terms of class, part, and state:
-
The class identifies a group of related visual style elements that are typically drawn together. The class is specified by the property.
-
The part defines a discrete member of a class. The part is specified by the property.
-
The state describes the current visual state of the element defined by the class and part. The state is specified by the property.
The namespace exposes hundreds of objects that represent the controls and user interface elements that can be defined by a visual style. These objects are exposed as static properties of nested classes of . For each property, the qualified name of the owning class represents the class and the part of the drawn element, and the property name represents the state of the element. For example, the property returns a that can be used to draw a button in the pressed state with visual styles. The Pressed property name corresponds to the state, PushButton corresponds to the part, and Button identifies the class of the visual style element.
To draw a visual style element, create a , set it to the you wish to draw, and then call the method. To determine whether the current visual style provides a definition for a particular element, call the method with the element as the argument.
and wrap the functionality of the visual styles API from the Windows Shell portion of the Windows Platform SDK. For more information on visual styles, see "Using Windows XP Visual Styles" in the Platform SDK portion of the MSDN Library at http://msdn.microsoft.com/library.
Identifies a control or user interface (UI) element that is drawn with visual styles.
Property
System.String
To be added.
A class name refers to a group of related visual style elements that are typically drawn together. A class name can correspond to a control, such as "SCROLLBAR" and "TRACKBAR", but a class name can also refer to a group of elements that do not correspond to a particular control, such as "EXPLORERBAR" and "STARTPANEL".
For more information on visual style classes, parts, and states, see "Parts and States" in the Windows Shell documentation at http://msdn.microsoft.com/library.
Gets the class name of the visual style element that this represents.
2.0.0.0
Method
System.Windows.Forms.VisualStyles.VisualStyleElement
To be added.
Creates a new visual style element from the specified class, part, and state values.
A with the , , and properties initialized to the , , and parameters.
A string that represents the class name of the visual style element to be created.
A value that represents the part of the visual style element to be created.
A value that represents the state of the visual style element to be created.
2.0.0.0
Property
System.Int32
To be added.
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 http://msdn.microsoft.com/library.
Gets a value indicating the part of the visual style element that this represents.
2.0.0.0
Property
System.Int32
To be added.
A visual style part can have one or more visual states. For example, a visual style element that represents a radio button can be in the disabled, checked, or unchecked state.
State values are integers that range from 1 to the number of states defined for a particular part. For more information on visual style classes, parts, and states, see "Parts and States" in the Windows Shell documentation located at http://msdn.microsoft.com/library.
Gets a value indicating the state of the visual style element that this represents.
2.0.0.0