ListModel.getNItems

Gets the number of items in list.

Depending on the model implementation, calling this function may be less efficient than iterating the list with increasing values for position until gio.list_model.ListModel.getItem returns null.

interface ListModel
uint
getNItems
()

Return Value

Type: uint

the number of items in list.