Represents the currently selected elements as an ordered list.
Functions
Adds an element to the end of the list.
- Parameters:
-
| item | The element to add to the list. |
Removes all elements from the list.
| bool Contains |
( |
object |
item |
) |
Determines whether the list contains a specific element.
- Parameters:
-
| item | The 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:
-
| index | The 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:
-
| item | The 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:
-
| index | The zero-based index at which item should be inserted. |
| item | The element to insert into the list. |
| bool Remove |
( |
object |
item |
) |
Removes the first occurrence of a specific element from the list.
- Parameters:
-
| item | The 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:
-
| index | The zero-based index of the item to remove. |
| void SetItem |
( |
int |
index |
, |
object |
value |
) |
Sets the element at the specified index.
- Parameters:
-
| index | The zero-based index of the element to set. |
| value | The element to assign at the given index. |
Returns the selected elements as a JavaScript array.
- Returns:
- The selected elements as a JavaScript array.
Properties
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.
Gets the number of elements contained in the list.