RunDialogsInputListBox Method (String, IEnumerable, Object, String, String, Int32, Int32) |
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: 23.0
Syntax Public Shared Function InputListBox (
Prompt As String,
ListItems As IEnumerable,
DefaultValue As Object,
Optional Title As String = "",
Optional ListName As String = "",
Optional Height As Integer = 0,
Optional Width As Integer = 0
) As Object
public static Object InputListBox(
string Prompt,
IEnumerable ListItems,
Object DefaultValue,
string Title = "",
string ListName = "",
int Height = 0,
int Width = 0
)
Parameters
- Prompt
- Type: SystemString
A prompt to show in the dialog. - ListItems
- Type: System.CollectionsIEnumerable
The list of items. - DefaultValue
- Type: SystemObject
The default value. - Title (Optional)
- Type: SystemString
The dialog title. - ListName (Optional)
- Type: SystemString
The list title. - Height (Optional)
- Type: SystemInt32
Dialog height in Device Independent Pixels. If this is zero, the width will be sized to fit the contents. - Width (Optional)
- Type: SystemInt32
Dialog width in Device Independent Pixels. If this is zero, the width will be sized to fit the contents.
Return Value
Type:
ObjectThe selected item, or Nothing if the dialog was cancelled.
See Also