WebPartVerb.Visible 属性
定义
获取或设置一个值,该值指示谓词对用户是否可见。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
属性值
如果谓词可见,则为 true;否则为 false。true if the verb is visible; otherwise, false. 默认值为 true。The default is true.
- 属性
注解
谓词通常需要隐藏或显示,具体取决于 Web 部件应用程序的内容。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.
其 Visible 属性设置为的谓词 false 对于用户是隐藏的,但仍呈现在页上,仍可通过编程方式访问,并且仍可完全参与页面和控件生命周期事件。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. 有关详细信息,请参阅 ThemeableAttribute 和 ASP.NET 主题和外观。For more information, see ThemeableAttribute and ASP.NET Themes and Skins.