Skip to content

ComboBox

Summary

A control that shows drop down list of items and allows user to select a single item from the list

Signature

1
public class ComboBox : Control

Namespace

cAlgo.API

Methods

AddItem

Summary

Adds a new item to the ComboBox

Signature

1
public void AddItem(string item)

Parameters

Name Type Description
item string The string value that will be added on ComboBox

Return Value

void

RemoveItem

Summary

Removes an existing item from the ComboBox

Signature

1
public void RemoveItem(string item)

Parameters

Name Type Description
item string The string value that will be removed from ComboBox

Return Value

void

Properties

SelectedItem

Summary

Set / Get the ComboBox selected item

Signature

1
public string SelectedItem {get; set;}

Return Value

string

SelectedIndex

Summary

Set / Get the ComboBox selected item index

Signature

1
public int SelectedIndex {get; set;}

Return Value

int

Events

SelectedItemChanged

Summary

This event will trigger if the ComboBox selected item changed

Signature

1
public event Action<ComboBoxSelectedItemChangedEventArgs> SelectedItemChanged;