@DOMObjectAttribute @DOMNoInterfaceObjectAttribute public abstract class SVGListBase<T> extends SVGValueType implements com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<T>
This interface defines a base list of all SVG lists.
T
: Type of item stored in list.
System.Collections.Generic.IEnumerable{T}
flags
PropertyChanged
Modifier and Type | Method and Description |
---|---|
T |
appendItem(T newItem)
Inserts a new item at the end of the list.
|
SVGValueType |
asReadOnly() |
void |
clear()
Clears all existing current items from the list, with the result being an empty list.
|
T |
get_Item(long index)
Returns the indexth item in the list.
|
T |
getItem(long index)
Returns the specified item from the list.
|
long |
getLength()
The number of items in the list.
|
long |
getNumberOfItems()
The number of items in the list.
|
T |
initialize(T newItem)
Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
|
T |
insertItemBefore(T newItem,
long index)
Inserts a new item into the list at the specified position.
|
com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<T> |
iterator()
Gets the enumerator.
|
T |
removeItem(long index)
Removes an existing item from the list.
|
T |
replaceItem(T newItem,
long index)
Replaces an existing item in the list with a new item.
|
void |
set_Item(long index,
T value)
Returns the indexth item in the list.
|
deepClone, dispose, getKey, isDetached, isObserverSuppressed, isReadOnly, notifyPropertyChanged, setDetached, setObserverSuppressed, toString
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
@DOMNameAttribute(name="item") public T get_Item(long index)
Returns the indexth item in the list.
index
- Index in the list.
Value:
The type of item stored in list.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.DOMException
- Code DOMException.INDEX_SIZE_ERR
.
Raised if the index number is greater than or equal to numberOfItems.@DOMNameAttribute(name="item") public void set_Item(long index, T value)
Returns the indexth item in the list.
index
- Index in the list.
Value:
The type of item stored in list.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.DOMException
- Code DOMException.INDEX_SIZE_ERR
.
Raised if the index number is greater than or equal to numberOfItems.@DOMNameAttribute(name="length") public long getLength()
The number of items in the list.
Value: The number of items.@DOMNameAttribute(name="numberOfItems") public long getNumberOfItems()
The number of items in the list.
Value: The number of items.@DOMNameAttribute(name="clear") public void clear()
Clears all existing current items from the list, with the result being an empty list.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.@DOMNameAttribute(name="initialize") public T initialize(T newItem)
Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
newItem
- The item which should become the only member of the list.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.@DOMNameAttribute(name="getItem") public T getItem(long index)
Returns the specified item from the list.
index
- The index of the item from the list which is to be returned. The first item is number 0.DOMException
- Code DOMException.INDEX_SIZE_ERR
.
Raised if the index number is greater than or equal to numberOfItems.@DOMNameAttribute(name="insertItemBefore") public T insertItemBefore(T newItem, long index)
Inserts a new item into the list at the specified position. The first item is number 0.
newItem
- The item which is to be inserted into the list.index
- The index of the item before which the new item is to be inserted. The first item is number 0. If the index is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.@DOMNameAttribute(name="replaceItem") public T replaceItem(T newItem, long index)
Replaces an existing item in the list with a new item.
newItem
- The item which is to be inserted into the list.index
- The index of the item which is to be replaced. The first item is number 0.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.DOMException
- Code DOMException.INDEX_SIZE_ERR
.
Raised if the index number is greater than or equal to numberOfItems.@DOMNameAttribute(name="removeItem") public T removeItem(long index)
Removes an existing item from the list.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.@DOMNameAttribute(name="appendItem") public T appendItem(T newItem)
Inserts a new item at the end of the list.
newItem
- The item which is to be inserted. The first item is number 0.DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised when the list cannot be modified.public com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<T> iterator()
Gets the enumerator.
iterator
in interface com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<T>
iterator
in interface com.aspose.html.internal.ms.System.Collections.IEnumerable<T>
iterator
in interface Iterable<T>
IEnumerator
object that can be used to iterate through the collection.public SVGValueType asReadOnly()
asReadOnly
in class SVGValueType