Edit

Share via


VisualStyleRenderer.GetEnumValue(EnumProperty) Method

Definition

Returns the value of the specified enumerated type property for the current visual style element.

public:
 int GetEnumValue(System::Windows::Forms::VisualStyles::EnumProperty prop);
public int GetEnumValue (System.Windows.Forms.VisualStyles.EnumProperty prop);
member this.GetEnumValue : System.Windows.Forms.VisualStyles.EnumProperty -> int
Public Function GetEnumValue (prop As EnumProperty) As Integer

Parameters

prop
EnumProperty

One of the EnumProperty values that specifies which property value to retrieve for the current visual style element.

Returns

The integer value of the property specified by the prop parameter for the current visual style element.

Exceptions

prop is not one of the EnumProperty values.

Remarks

Visual styles use a set of enumerated types to describe some properties of the elements defined by a style. These enumerated types are encapsulated by the EnumProperty values.

Applies to