Click or drag to resize

DialogsShowListBox Method (String, String, IList, Object)

Displays Rhino's list box.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static Object ShowListBox(
	string title,
	string message,
	IList items,
	Object selectedItem
)

Parameters

title
Type: SystemString
The dialog title.
message
Type: SystemString
The dialog message.
items
Type: System.CollectionsIList
A list of items to show.
selectedItem
Type: SystemObject
The item to preselect.

Return Value

Type: Object
The selected item if successful, null on cancel.
See Also