public abstract class ElementList extends Object implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Element>
Represents an ordered collection of elements.
Modifier and Type | Method and Description |
---|---|
void |
addElement(Element element) |
abstract void |
addElement(Element element,
boolean updatePdfDictionary)
Add element to list.
|
Element |
get_Item(int index) |
abstract int |
getCount()
Gets the number of elements in the ElementList.
|
void |
insertElement(Element element,
int index)
Insert element to list.
|
abstract Element |
item(int index)
Retrieves a element at the given index.
|
abstract com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Element> |
iterator()
Gets an enumerator that iterates through the collection of elements.
|
void |
removeAt(int index)
Remove element from list.
|
int |
removeElement(Element element)
Remove element from list.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public abstract int getCount()
Gets the number of elements in the ElementList.
public abstract Element item(int index)
Retrieves a element at the given index.
index
- The index into the list of elements./Aspose.Pdf.LogicalStructure.Element
with the specified index in the collection. If index
is greater than or equal to the number of elements in the list, this returns null.public Element get_Item(int index)
public abstract com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Element> iterator()
Gets an enumerator that iterates through the collection of elements.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Element>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<Element>
iterator
in interface Iterable<Element>
public void addElement(Element element)
public abstract void addElement(Element element, boolean updatePdfDictionary)
Add element to list.
element
- The /Aspose.Pdf.LogicalStructure.Element
.updatePdfDictionary
- Should the pdf dictionary be updated.public void insertElement(Element element, int index)
Insert element to list.
element
- The /Aspose.Pdf.LogicalStructure.Element
.index
- Index to insert to.public int removeElement(Element element)
Remove element from list.
element
- The /Aspose.Pdf.LogicalStructure.Element
.public void removeAt(int index)
Remove element from list.
index
- Index to remove.Copyright © 2025 Aspose. All Rights Reserved.