WebPartManager.Visible 属性

定义

获取一个值,该值可使子控件可见。Gets a value that enables child controls to be visible.

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

属性值

Boolean

一个布尔值,指示 WebPartManager 控件及其子控件是否可见。A Boolean value that indicates whether a WebPartManager control and its child controls are visible. 在所有情况下均为 truetrue in all cases.

属性

例外

尝试向该属性指定一个值。An attempt was made to assign a value to the property.

注解

WebPartManager控件重写基 Control.Visible 属性,以始终为属性返回值 true VisibleThe WebPartManager control overrides the base Control.Visible property to always return a value of true for the Visible property. 即使 WebPartManager 控件本身不可见, Visible 属性也需要设置为, true 以便默认情况下其所有子控件都可见。Even though the WebPartManager control itself is not visible, the Visible property needs to be set to true so that all its child controls are visible by default.

如果尝试设置属性的值 Visible ,则它始终会生成错误,因为 WebPartManager 控件已经重写基属性行为,并阻止为属性赋值。If you try to set the value of the Visible property, it always generates an error because the WebPartManager control has overridden the base property behavior and prevents assigning any value to the property.

此属性在可视化设计器中不可绑定,但在运行时是可绑定的。This property is not bindable in visual designers, but is bindable at runtime. 有关详细信息,请参阅 BindableAttributeFor more information, see BindableAttribute.

适用于