VisualStyleRenderer.GetBoolean(BooleanProperty) 方法

定义

返回当前视觉样式元素的指定布尔属性的值。

public:
 bool GetBoolean(System::Windows::Forms::VisualStyles::BooleanProperty prop);
public bool GetBoolean(System.Windows.Forms.VisualStyles.BooleanProperty prop);
member this.GetBoolean : System.Windows.Forms.VisualStyles.BooleanProperty -> bool
Public Function GetBoolean (prop As BooleanProperty) As Boolean

参数

prop
BooleanProperty

指定要 BooleanProperty 为当前视觉样式元素检索哪些属性值的值之一。

返回

true 如果参数指定的 prop 属性用于 true 当前视觉样式元素,则为 ;否则为 false

例外

注解

视觉样式使用一组布尔值来描述样式定义的元素的某些属性。 这些属性由 BooleanProperty 值封装。

适用于