ToolZone.Visible Property

Note: This property is new in the .NET Framework version 2.0.

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)] 
public:
virtual property bool Visible {
	bool get () override;
	void set (bool value) override;
}
/** @property */
public boolean get_Visible ()

/** @property */
public void set_Visible (boolean value)

public override function get Visible () : boolean

public override function set Visible (value : boolean)

Property Value

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

Exception typeCondition

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.

NoteImportant:

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: