WebPartManager.Visible 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一個讓子控系統可見的值。
public:
virtual property bool Visible { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public override bool Visible { get; set; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(false)>]
member this.Visible : bool with get, set
Public Overrides Property Visible As Boolean
屬性值
一個布林值,表示控制項及其子控制項是否 WebPartManager 可見。
true 無論哪種情況。
- 屬性
例外狀況
曾嘗試為該物業定價。
備註
控制WebPartManager項會覆寫基礎Control.Visible屬性,確保該屬性的值trueVisible永遠為 。 即使 WebPartManager 控制項本身不可見,該 Visible 屬性仍需設定為 true 預設所有子控制項皆可見。
如果你嘗試設定屬性的 Visible 值,總是會產生錯誤,因為 WebPartManager 控制項覆蓋了基礎屬性的行為,無法為屬性指派任何值。
此屬性在視覺設計器中無法綁定,但在執行時可綁定。 如需詳細資訊,請參閱BindableAttribute。