VisualStyleRenderer.GetBoolean(BooleanProperty) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回目前可視化樣式專案的指定 Boolean 屬性值。
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。
例外狀況
prop 不是其中 BooleanProperty 的價值觀之一。
備註
視覺樣式使用一組布林值來描述樣式所定義元素的某些屬性。 這些屬性由數 BooleanProperty 值所概括。