Open topic with navigation

# ToolBarItem

# WPF. ToolBarItem

ToolBarItem

# Constructor

## new ToolBarItem()

A single tool bar button in a .NET WPF tool bar.

### Methods

## hasEllipses() → {Promise.<boolean>}

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

##### Returns:

a promise that is fulfilled with the indication of whether this toolbar item's text is truncated and if an ellipsis (...) is displayed.

Type
  Promise.<boolean>

## identifier() → {number|string}

The identifier of the item.

##### Returns:

the identifier of the item.

Type
  number | string

## index() → {Promise.<number>}

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

##### Returns:

a promise that is fulfilled with the 1-based index of this toolbar item. The index does not include hidden and separator buttons.

Type
  Promise.<number>

## isChecked() → {Promise.<boolean>}

Indicates whether this toggle button is set.

##### Returns:

a promise that is fulfilled with an indication of whether this toggle button is set.

Type
  Promise.<boolean>

## isEnabled() → {Promise.<boolean>}

Indicates whether this toolbar item can accept user input.

##### Returns:

a promise that is fulfilled with the indication of whether this toolbar item can accept user input.

Type
  Promise.<boolean>

## isHot() → {Promise.<boolean>}

Indicates whether this toolbar item appears highlighted because the mouse pointer is hovering over it.

##### Returns:

a promise that is fulfilled with the indication of whether this toolbar item appears highlighted because the mouse pointer is hovering over it.

Type
  Promise.<boolean>

## name() → {Promise.<string>}

The name of this toolbar item.

##### Returns:

a promise that is fulfilled with the name of this toolbar item.

Type
  Promise.<string>

## textRepresentation() → {string}

The text representation of the item.

##### Returns:

the text representation of the item.

Type
  string

## type() → {Promise.<string>}

The control type of this toolbar item.

##### Returns:

a promise that is fulfilled with the control type of this toolbar item.

Type
  Promise.<string>