Class
DesktopComboBox

Represents combo box control.

Definition

Constructors

DesktopComboBox()

Declaration

cs-api-definition
public DesktopComboBox()

Properties

CanSelectMultiple

Indicates whether multiple items can be selected.

Declaration

cs-api-definition
public bool CanSelectMultiple { get; }

Property Value

bool

IsCollapsed

Indicates whether control is collapsed or not.

Declaration

cs-api-definition
public bool IsCollapsed { get; }

Property Value

bool

IsSelectionRequired

Indicates whether item selection is required.

Declaration

cs-api-definition
public bool IsSelectionRequired { get; }

Property Value

bool

Value

Get value of combo box.

Declaration

cs-api-definition
public string Value { get; }

Property Value

string

Methods

Collapse()

Collapse control.

Declaration

cs-api-definition
public void Collapse()

Expand()

Expand control.

Declaration

cs-api-definition
public void Expand()

GetItems()

Get all items.

Declaration

cs-api-definition
public DesktopListViewItem[] GetItems()

Returns

DesktopListViewItem[]

Array of DesktopListViewItem.

GetSelectedItem()

Get currently selected item.

Declaration

cs-api-definition
public DesktopListViewItem GetSelectedItem()

Returns

DesktopListViewItem

Instance of DesktopListViewItem.

GetSelectedItems()

Get all selected item.

Declaration

cs-api-definition
public DesktopListViewItem[] GetSelectedItems()

Returns

DesktopListViewItem[]

Array of DesktopListViewItem.

InitControl(DesktopElement)

Initialize desktop control.

Declaration

cs-api-definition
protected override void InitControl(DesktopElement element)

Parameters

element

DesktopElement

Underlying element.

Overrides DesktopControl.InitControl(DesktopElement)

SelectByIndex(int)

Select item by index.

Declaration

cs-api-definition
public void SelectByIndex(int index)

Parameters

index

int

The index of the item.

SelectByValue(string)

Select item by value.

Declaration

cs-api-definition
public void SelectByValue(string value)

Parameters

value

string

The value of the item.