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 的其中一個值,指定要為目前視覺樣式項目擷取的屬性值。

傳回

Boolean

如果目前視覺化樣式項目之 prop 參數指定的屬性為 true,則為 true,否則為 false

例外狀況

prop 不是其中一個 BooleanProperty 值。

備註

視覺化樣式會使用一組布林值來描述樣式所定義元素的某些屬性。 這些屬性會由 BooleanProperty 值封裝。

適用於