System.Windows.Forms.ToolStripButton Members

The members of System.Windows.Forms.ToolStripButton are listed below.

See Also: Inherited members from System.Windows.Forms.ToolStripItem

Public Constructors

Initializes a new instance of the System.Windows.Forms.ToolStripButton class.

Initializes a new instance of the System.Windows.Forms.ToolStripButton class that displays the specified image.

Initializes a new instance of the System.Windows.Forms.ToolStripButton class that displays the specified text.

Initializes a new instance of the System.Windows.Forms.ToolStripButton class that displays the specified text and image.

Initializes a new instance of the System.Windows.Forms.ToolStripButton class that displays the specified text and image and that raises the ToolStripItem.Click event.

Initializes a new instance of the System.Windows.Forms.ToolStripButton class with the specified name that displays the specified text and image and that raises the ToolStripItem.Click event.

Public Properties

AutoToolTipbool.

Gets or sets a value indicating whether default or custom System.Windows.Forms.ToolTip text is displayed on the System.Windows.Forms.ToolStripButton.

[read-only]
override
CanSelectbool.

Gets a value indicating whether the System.Windows.Forms.ToolStripButton can be selected.

Checkedbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripButton is pressed or not pressed.

CheckOnClickbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripButton should automatically appear pressed in and not pressed in when clicked.

CheckStateCheckState.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripButton is in the pressed or not pressed state by default, or is in an indeterminate state.

Protected Properties

[read-only]
override
DefaultAutoToolTipbool.

Gets a value indicating whether to display the ToolTip that is defined as the default.

Public Methods

override
GetPreferredSize(System.Drawing.Size) : System.Drawing.Size

Retrieves the size of a rectangular area into which a System.Windows.Forms.ToolStripButton can be fitted.

Protected Methods

Public Events

CheckedChanged

Occurs when the value of the ToolStripButton.Checked property changes.

CheckStateChanged

Occurs when the value of the ToolStripButton.CheckState property changes.