MultiListBox - PYTHON 不支持

Displays a list of items in a multiple-selection list box dialog.

语法

Rhino.MultiListBox (arrItems [, strMessage [, strTitle]])

参数

arrItems

Required.Array.A zero-based, one-dimensional array of string items.

strMessage

可选参数。字符串。A prompt or message.

strTitle

可选参数。字符串。A dialog box title.

返回值

Array

A zero-based, one-dimensional array containing the selected item if successful.

Null

如果执行不成功或出错,返回空值。

示例

Dim arrLayers, arrResults, i

arrLayers = Rhino.LayerNames

If IsArray(arrLayers) Then

arrResults = Rhino.MultiListBox(arrLayers, "Layers to lock")

If IsArray(arrResults) Then

For i = 0 To UBound(arrResults)

Rhino.LayerMode arrResults(i), 2

Next

End If

End If

 

 

同见

CheckListBox

ComboListBox

ListBox

PropertyListBox