Interface IToolBarItem
A single tool bar item or menu item of a .NET Windows Forms tool bar.
public interface IToolBarItem
Properties
HasEllipses
Indicates whether this toolbar item's text is truncated and an ellipsis (...) is displayed.
bool HasEllipses { get; }
Property Value
Index
The 0-based index number of this toolbar item. The index does not include hidden and separator buttons.
int Index { get; }
Property Value
IsChecked
Indicates whether a toggle push button is currently selected (pushed).
bool IsChecked { get; }
Property Value
Remarks
Only invoke on dual-state (toggle) push buttons.
IsEnabled
Indicates whether this toolbar item can accept user input.
bool IsEnabled { get; }
Property Value
IsHidden
Indicates whether this item is not visible and therefore cannot accept user input.
bool IsHidden { get; }
Property Value
Remarks
An item can be visible and disabled for other reasons. See IsEnabled
IsHighlighted
Indicates whether this toolbar item is surrounded by a dotted line.
bool IsHighlighted { get; }
Property Value
IsHot
Indicates whether this toolbar item appears highlighted, as when the mouse hovers over it.
bool IsHot { get; }
Property Value
IsIndeterminate
Indicates that this control is neither checked nor unchecked. An indeterminate control generally has a shaded appearance.
bool IsIndeterminate { get; }
Property Value
IsMarked
Indicates whether this toolbar item is marked. The interpretation of a marked button is application dependent.
bool IsMarked { get; }
Property Value
IsPressed
Indicates whether this toolbar item is currently being clicked.
bool IsPressed { get; }
Property Value
IsWrap
Indicates whether this toolbar item is followed by a line break.
bool IsWrap { get; }
Property Value
Remarks
Only invoke if the item is enabled.
Name
The name of this toolbar item.
string Name { get; }
Property Value
Methods
Press()
Presses this toolbar item.
void Press()