Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetEnumValue Method

VisualStyleRenderer.GetEnumValue Method

Note: This method is new in the .NET Framework version 2.0.

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

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

public int GetEnumValue (
	EnumProperty prop
)
public int GetEnumValue (
	EnumProperty prop
)
public function GetEnumValue (
	prop : EnumProperty
) : int

Parameters

prop

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

Return Value

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

Exception typeCondition

InvalidEnumArgumentException

prop is not one of the EnumProperty values.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft