Leer en inglés Editar

Compartir vía


VisualStyleRenderer.GetEnumValue(EnumProperty) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

C#
public int GetEnumValue(System.Windows.Forms.VisualStyles.EnumProperty prop);

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

Producto Versiones
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10