Muokkaa

Jaa


WebPartVerb.Visible Property

Definition

Gets or sets a value that indicates whether a verb is visible to users.

public:
 virtual property bool Visible { bool get(); void set(bool value); };
[System.Web.UI.Themeable(false)]
public virtual bool Visible { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.Visible : bool with get, set
Public Overridable Property Visible As Boolean

Property Value

true if the verb is visible; otherwise, false. The default is true.

Attributes

Remarks

Verbs often need to be hidden or displayed depending on the content of a Web Parts application. For example, the minimize verb is hidden when a control is already minimized, and conversely, the restore verb is hidden when the control is in its normal, non-minimized state.

A verb whose Visible property is set to false is hidden from users, but is still rendered on a page, can still be accessed programmatically, and still fully participates in page and control life cycle events.

This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

Applies to

See also