Extensions2AddDropDown Method

Adds a DropDown with selectable items

Definition

Namespace: DWSIM.ExtensionMethods.Eto
Assembly: DWSIM.ExtensionMethods.Eto (in DWSIM.ExtensionMethods.Eto.dll) Version: 10.0.0.0
public static DropDown AddDropDown(
	DynamicLayout container,
	string text,
	List<string> options,
	int selected,
	Action<DropDown, EventArgs> selectedindexchangedhandler = null
)

Parameters

container  DynamicLayout
Layout container
text  String
Text (description)
options  ListString
Selectable items
selected  Int32
Index of the currently selected item (zero-based)
selectedindexchangedhandler  ActionDropDown, EventArgs  (Optional)
Handler for the SelectedIndexChanged event.

Return Value

DropDown

See Also