Table of Contents

Interface IToolBarItem

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

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

bool

Index

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

int Index { get; }

Property Value

int

IsChecked

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

bool IsChecked { get; }

Property Value

bool

Remarks

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

IsEnabled

Indicates whether this toolbar item can accept user input.

bool IsEnabled { get; }

Property Value

bool

IsHidden

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

bool IsHidden { get; }

Property Value

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.

bool IsHighlighted { get; }

Property Value

bool

IsHot

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

bool IsHot { get; }

Property Value

bool

IsIndeterminate

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

bool IsIndeterminate { get; }

Property Value

bool

IsMarked

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

bool IsMarked { get; }

Property Value

bool

IsPressed

Indicates whether this toolbar item is currently being clicked.

bool IsPressed { get; }

Property Value

bool

IsWrap

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

bool IsWrap { get; }

Property Value

bool

Remarks

Only invoke if the item is enabled.

Name

The name of this toolbar item.

string Name { get; }

Property Value

string

Methods

Press()

Presses this toolbar item.

void Press()