Partager via


TOOLBARCHECKBUTTON Element | ToolbarCheckButton Class

This class represents a ToolbarCheckButton within a Toolbar.

Syntax

Visual Basic  Public  Class ToolbarCheckButton Inherits ToolbarButton
C# public   class ToolbarCheckButton : ToolbarButton
Managed C++ public:  __gc class ToolbarCheckButton :  public ToolbarButton
JScript public   class ToolbarCheckButton extends ToolbarButton

Inheritance Hierarchy

Object::BaseChildNode::ToolbarItem::ToolbarLabel::ToolbarButton

Remarks

The TOOLBARCHECKBUTTON derives from TOOLBARBUTTON. Unlike a TOOLBARBUTTON, however, a TOOLBARCHECKBUTTON can be made part of a TOOLBARCHECKGROUP, which mutually excludes the buttons.

This server-side object is exposed from a ASP.NET control and is not exposed to client-side script.

This element is a block element.

This element requires a closing tag.

Members Table

The following table lists the members exposed by the ToolbarCheckButton object.

Attribute Property Description
AnchorHref The post-back anchor script string.
AUTOPOSTBACK AutoPostBack Sets or retrieves a value that indicates whether or not the control posts back to the server each time a user interacts with the control.
CurrentStyle The product of merging local and global styles.
Enabled Sets or retrieves a value that indicates whether the item is enabled.
GROUP Group Retrieves the ToolbarCheckGroup that this ToolbarCheckButton belongs to.
HOVERSTYLE HoverStyle Sets or retrieves a value that indicates the style of the element when the user hovers the keyboard focus or mouse pointer over it.
Index Retrieves the index of the toolbar item within the parent.
ParentToolbar The Toolbar control that contains this item.
SELECTED Selected Sets or retrieves a value that indicates whether the object is selected.
SELECTEDSTYLE SelectedStyle Sets or retrieves a value that indicates the style for the selected element.
UpLevelTag The uplevel tag name for the object item.
Event Description
ButtonClick Fires when a ToolbarCheckButton or ToolbarButton is clicked.
CheckChange Fires when a ToolbarCheckButton element changes state.
Method Description
Clone Creates a new object that is a copy of the current instance.
OnCheckChange Fires when the checkbutton's state changes.
RenderText Renders the text property.
Toggle Toggles the selected state of the ToolbarCheckButton.
WriteItemAttributes Renders the object item's attributes.

Class Information

Namespace Microsoft.Web.UI.WebControls
Assembly Microsoft.Web.UI.WebControls.dll

Applies To

TOOLBAR, TOOLBARCHECKGROUP

See Also

Internet Explorer WebControls, About the Toolbar WebControl