GraphicElementCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public final class GraphicElementCollection implements Iterable<GraphicElement>

Represents GraphicElement collection.

Constructors

ConstructorDescription
GraphicElementCollection()Initializes the new collection.

Methods

MethodDescription
iterator()Returns an enumerator for the entire collection.
iterator_Rename_Namesake()Returns an enumerator for the entire collection.
add(GraphicElement item)Adds a new GraphicElement to the collection.
clear()Clears the collection.
contains(GraphicElement item)Determines whether an element is in the collection.
copyTo(GraphicElement[] array, int arrayIndex)Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.
remove(GraphicElement item)Deletes the GraphicElement element.
size()Gets the number of GraphicElement object elements actually contained in the collection.
toList()Returns the inner collection for unrestricted enumeration.
toString()Gets a string representation of this collection.
get_Item(int index)Gets the GraphicElement element at the specified index.
isReadOnly()Gets a value indicating whether collection is read only.

GraphicElementCollection()

public GraphicElementCollection()

Initializes the new collection.

iterator()

public final System.Collections.Generic.IGenericEnumerator<GraphicElement> iterator()

Returns an enumerator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.pdf.vector.GraphicElement> - Enumerator object.

iterator_Rename_Namesake()

public final System.Collections.IEnumerator iterator_Rename_Namesake()

Returns an enumerator for the entire collection.

Returns: com.aspose.ms.System.Collections.IEnumerator - Enumerator object.

add(GraphicElement item)

public final void add(GraphicElement item)

Adds a new GraphicElement to the collection. All items in the collection must have the same GraphicElement.Parent (GraphicElement#getParent).

Parameters:

ParameterTypeDescription
itemGraphicElementIGraphicElement.

clear()

public final void clear()

Clears the collection.

contains(GraphicElement item)

public final boolean contains(GraphicElement item)

Determines whether an element is in the collection.

Parameters:

ParameterTypeDescription
itemGraphicElementGraphicElement to search.

Returns: boolean - True - if element found; otherwise, false.

copyTo(GraphicElement[] array, int arrayIndex)

public final void copyTo(GraphicElement[] array, int arrayIndex)

Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Parameters:

ParameterTypeDescription
arrayGraphicElement[]Array of objects which will be copied.
arrayIndexintStarting index from which copying will be started.

remove(GraphicElement item)

public final boolean remove(GraphicElement item)

Deletes the GraphicElement element.

Parameters:

ParameterTypeDescription
itemGraphicElementGraphicElement object that will be deleted.

Returns: boolean - True - if element found; otherwise, false.

size()

public final int size()

Gets the number of GraphicElement object elements actually contained in the collection.

Returns: int - int value

toList()

public final System.Collections.Generic.List<GraphicElement> toList()

Returns the inner collection for unrestricted enumeration.

Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.vector.GraphicElement> - Inner list

toString()

public String toString()

Gets a string representation of this collection.

Returns: java.lang.String - The string.

get_Item(int index)

public final GraphicElement get_Item(int index)

Gets the GraphicElement element at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex within the collection.

Returns: GraphicElement - GraphicElement.

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether collection is read only. Always returns false.

Returns: boolean - boolean value