Click or drag to resize

ToolItem Class

Base tool item class for a ToolBar.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public abstract class ToolItem : Tool, 
	ICommandItem

The ToolItem type exposes the following members.

Constructors
  NameDescription
Protected methodToolItem
Initializes a new instance of the ToolItem class.
Protected methodToolItem(Command)
Initializes a new instance of the ToolItem class with the specified command.
Top
Properties
  NameDescription
Public propertyCommand
Gets or sets the command to invoke when the tool item is pressed.
Public propertyCommandParameter
Gets or sets the parameter to pass to the Command when executing or determining its CanExecute state.
Public propertyEnabled
Gets or sets a value indicating whether this ToolItem is enabled.
Public propertyImage
Gets or sets the image for the tool item.
Public propertyOrder
Gets or sets the order of the tool item when adding to the ToolItemCollection.
Public propertyTag
Gets or sets a user-defined tag for the tool item.
Public propertyText
Gets or sets the text of the item, with mnemonic.
Public propertyToolTip
Gets or sets the tool tip to show when hovering the mouse over the item.
Top
Methods
  NameDescription
Public methodOnClick
Raises the Click event.
Top
Events
  NameDescription
Public eventClick
Occurs when the user clicks on the item.
Top
See Also