ToolZone.Visible Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value that indicates whether a server control is rendered as a user interface (UI) element on the page.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

[BindableAttribute(false)]
[BrowsableAttribute(false)]
public override bool Visible { get; set; }

Property Value

Type: System.Boolean

true if the control is visible on the page; otherwise, false.

Exception Condition
InvalidOperationException

The caller attempts to set the property at run time.

The ToolZone class overrides the base Visible property to consider both the value of the base property and the value of the Display property. If both property values are set to true, then the Visible property returns a value of true, and the control is visible on the page. If either property value is false, the Visible property returns a value of false, and the control is not visible.

System_CAPS_importantImportant

The Visible property can only be assigned at design time in a designer, such as the Microsoft Visual Studio designer. If you attempt to set the property programmatically, an exception is thrown.

This property is not bindable in visual designers, but is bindable at runtime. For more information, see BindableAttribute.

.NET Framework
Available since 2.0
Return to top
Show: