Share

RunDialogs.InputListBox Method (String, IEnumerable, Object, String)

Shows a dialog in which a single item can be chosen from a list.

Namespace:  Autodesk.iLogic.Runtime
Assembly:  Autodesk.iLogic.Runtime (in Autodesk.iLogic.Runtime.dll) Version: 30.0

Syntax

VB

Public Shared Function InputListBox ( 
	Prompt As String,
	ListItems As IEnumerable,
	DefaultValue As Object,
	Title As String
) As Object

C#

public static Object InputListBox(
	string Prompt,
	IEnumerable ListItems,
	Object DefaultValue,
	string Title
)

Parameters

Prompt
Type: System.String
A prompt to show in the dialog.
ListItems
Type: System.Collections.IEnumerable
The list of items.
DefaultValue
Type: System.Object
The default value.
Title
Type: System.String
The dialog title.

Return Value

Type: Object
The selected item, or Nothing if the dialog was cancelled.

See Also

Reference

Was this information helpful?