ListItem

WinForms. ListItem

ListItem

Constructor

new ListItem()

A List Item object

Methods

height() → {Promise.<number>}

The height of the list item (in pixels).
Returns:
a promise fulfilled with the height of the item.
Type
Promise.<number>

isAnchor() → {Promise.<boolean>}

Indicates whether the list item is an anchor item (the item from which a multiple selection span starts).
Returns:
a promise fulfilled with the indication whether the item is an anchor item or not.
Type
Promise.<boolean>

isChecked() → {Promise.<boolean>}

Indicates whether the list item is checked.
Returns:
a promise fulfilled with the indication whether the item is checked or not.
Type
Promise.<boolean>

isFocused() → {Promise.<boolean>}

Indicates whether the list item has focus in a multiple selection list box.
Returns:
a promise fulfilled with the indication whether the item is focused or not.
Type
Promise.<boolean>

isSelected() → {Promise.<boolean>}

Indicates whether the list item is selected.
Returns:
a promise fulfilled with the indication whether the item is selected or not.
Type
Promise.<boolean>

text() → {Promise.<string>}

The text value of the list item, or "" when empty.
Returns:
a promise fulfilled with the text of the item.
Type
Promise.<string>