Vizard 8 » Command Index » Vizard objects » node3d » <node3d:GUI:droplist>.getItemCount
8.0

<node3d:GUI:droplist>.getItemCount

Returns the number of items in the droplist.

<node3d:GUI:droplist>.getItemCount()  

Remarks

This command will return the number of items in the droplist.

Return Value

The number of items in the droplist.

Example

droplist = viz.addDropList()
droplist.setPosition(.5,.5)
options = ['A','B','C','D']
droplist.addItems(options)
print(droplist.getItemCount()) #Returns 4