Table of Contents

Interface IToolBarItem

A single tool bar item or menu item of a .NET Windows Forms tool bar.

Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface IToolBarItem

Properties

HasEllipses

Indicates whether this toolbar item's text is truncated and an ellipsis (...) is displayed.

Declaration
bool HasEllipses { get; }
Property Value
Type Description
bool

Index

The 0-based index number of this toolbar item. The index does not include hidden and separator buttons.

Declaration
int Index { get; }
Property Value
Type Description
int

IsChecked

Indicates whether a toggle push button is currently selected (pushed).

Declaration
bool IsChecked { get; }
Property Value
Type Description
bool
Remarks

Only invoke on dual-state (toggle) push buttons.

IsEnabled

Indicates whether this toolbar item can accept user input.

Declaration
bool IsEnabled { get; }
Property Value
Type Description
bool

IsHidden

Indicates whether this item is not visible and therefore cannot accept user input.

Declaration
bool IsHidden { get; }
Property Value
Type Description
bool
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.

Declaration
bool IsHighlighted { get; }
Property Value
Type Description
bool

IsHot

Indicates whether this toolbar item appears highlighted, as when the mouse hovers over it.

Declaration
bool IsHot { get; }
Property Value
Type Description
bool

IsIndeterminate

Indicates that this control is neither checked nor unchecked. An indeterminate control generally has a shaded appearance.

Declaration
bool IsIndeterminate { get; }
Property Value
Type Description
bool

IsMarked

Indicates whether this toolbar item is marked. The interpretation of a marked button is application dependent.

Declaration
bool IsMarked { get; }
Property Value
Type Description
bool

IsPressed

Indicates whether this toolbar item is currently being clicked.

Declaration
bool IsPressed { get; }
Property Value
Type Description
bool

IsWrap

Indicates whether this toolbar item is followed by a line break.

Declaration
bool IsWrap { get; }
Property Value
Type Description
bool
Remarks

Only invoke if the item is enabled.

Name

The name of this toolbar item.

Declaration
string Name { get; }
Property Value
Type Description
string

Methods

Press()

Presses this toolbar item.

Declaration
void Press()