VisualStyleRenderer.GetEnumValue(EnumProperty) 方法

定义

返回当前视觉样式元素的指定枚举类型属性的值。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

参数

prop
EnumProperty

EnumProperty 值之一,指定要为当前视觉样式元素检索的属性值。One of the EnumProperty values that specifies which property value to retrieve for the current visual style element.

返回

当前视觉样式元素的 prop 参数指定的属性的整数值。The integer value of the property specified by the prop parameter for the current visual style element.

异常

prop 不是 EnumProperty 值之一。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. 这些枚举类型由 EnumProperty 值封装。These enumerated types are encapsulated by the EnumProperty values.

适用于