WebPartVerb.Checked 属性
定义
获取或设置一个值,该值指示某个与自定义谓词相关联的状态当前是否处于活动状态或被选中。Gets or sets a value indicating that some state associated with a custom verb is currently active or selected.
public:
virtual property bool Checked { bool get(); void set(bool value); };
[System.Web.UI.Themeable(false)]
public virtual bool Checked { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.Checked : bool with get, set
Public Overridable Property Checked As Boolean
属性值
如果与自定义谓词相关联的状态当前处于活动状态,则为 true;否则为 false。true if a state associated with a custom verb is currently active; otherwise, false. 默认值为 false。The default is false.
- 属性
注解
此属性不与 Web 部件控件集提供的任何标准谓词一起使用。This property is not used with any of the standard verbs provided with the Web Parts control set. 当它与自定义谓词一起使用,并且属性值设置为时 true ,谓词旁边会出现一个选中的复选框,指示谓词的活动状态。When it is used with custom verbs, and the property value is set to true, a selected check box appears next to the verb to indicate the active status of the verb.
此属性的目的是为开发人员提供一种方法,指示与谓词关联的某些自定义状态当前处于活动状态。The purpose of this property is to give developers a way of indicating that some custom state associated with a verb is currently active. 例如,假设开发人员创建了一个自定义谓词,该谓词可将区域中所有控件上的正文文本的可访问性目的) (的文本大小放大 WebPart 。For example, suppose a developer creates a custom verb that enlarges the text size (for accessibility purposes) of the body text on all WebPart controls in a zone. 如果用户单击该谓词,则此属性值可以设置为,这会 true 导致选中的复选框显示在谓词菜单中的 " 增加文本大小 " 谓词旁边,这向用户指示与谓词关联的状态 (放大的文本) 处于活动状态。If a user clicks the verb, this property value could be set to true, which would cause a selected check box to appear next to the Increase Text Size verb in the verbs menu, indicating to users that the state associated with the verb (enlarged text) is active.
无法通过主题或样式表主题设置此属性。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.