Actions right arrow Actions List right arrow Execute JavaScript right arrow Class List right arrow SelectedElementsObject

Represents the currently selected elements as an ordered list.


Functions

void Add ( object item )

Adds an element to the end of the list.

Parameters:
itemThe element to add to the list.
void Clear ( )

Removes all elements from the list.

bool Contains ( object item )

Determines whether the list contains a specific element.

Parameters:
itemThe element to locate in the list.
Returns:
true if item is found in the list; otherwise, false.
object GetItem ( int index )

Gets the element at the specified index.

Parameters:
indexThe zero-based index of the element to get.
Returns:
The element at the specified index.
int IndexOf ( object item )

Searches for the specified element and returns the zero-based index of the first occurrence in the list.

Parameters:
itemThe element to locate in the list.
Returns:
The zero-based index of the first occurrence in the list.
void Insert ( int index , object item )

Inserts an item to the list at the specified index.

Parameters:
indexThe zero-based index at which item should be inserted.
itemThe element to insert into the list.
bool Remove ( object item )

Removes the first occurrence of a specific element from the list.

Parameters:
itemThe element to remove from the list.
Returns:
true if the item was successfully removed from the list; otherwise, false. This method also returns false if item is not found in the original list.
void RemoveAt ( int index )

Removes the element at the specified index.

Parameters:
indexThe zero-based index of the item to remove.
void SetItem ( int index , object value )

Sets the element at the specified index.

Parameters:
indexThe zero-based index of the element to set.
valueThe element to assign at the given index.
object ToArray ( )

Returns the selected elements as a JavaScript array.

Returns:
The selected elements as a JavaScript array.

Properties

string LastError = ""

If the last action performed by the SelectedElementsObject object caused an error, this object gets a description of it. Otherwise it gets an empty string.

int Count [get]

Gets the number of elements contained in the list.