List (of Collection)

class List

Defined in System.sc.

The List class is an extension of the Collection class. It is used to handle a list of elements such as objects that can be accessed by index.

Subclasses: Controls, Dialog, Set, Conversation, _EditablePolygon, PolyEdit, DialogEditor.

Properties

Inherited from Collection:

Property Description
elements  
size  
name  

Methods

showStr(buffer)
at(theIndex)

Returns a pointer to the node at the specified index.

last()

Returns a pointer to the last node in the collection.

prev(node)

Returns a pointer to the node before the specified one in the collection.

addToFront([nodes ...])

Adds the specified nodes to the front of the element list. It returns a pointer to the itself.

addToEnd([nodes ...])

Adds the specified nodes to the end of the element list. It returns a pointer to the itself.

addAfter(node [nodes ...])

Adds the specified nodes to the element list after node. It returns a pointer to itself.

indexOf(node)

Returns the index of pNode in the list of elements.