method select

bool select(int32 index);

Argumente

Zurückgegebener Wert

This method selects an item at the give index as if someone clicked on row. This clears the current selection first.
                    
var list = scene.getBoxById("myList");
if (list)
{
    var sel = list.selection;
    if (sel)
    {
        sel.select(2);
    }
}