SmartArtNodeCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ISmartArtNodeCollection

public final class SmartArtNodeCollection implements ISmartArtNodeCollection

Represents a collection of SmartArt nodes.

Methods

MethodDescription
get_Item(int index)Returns node by index
size()Returns count of nodes in collection Read-only int Read-only int .
addNode()Add new smart art node or sub node.
removeNode(int index)Remove node or sub node by index
removeNode(ISmartArtNode node)Remove node or sub node
addNodeByPosition(int position)Add new node in the selected position of nodes collection
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.
copyTo(System.Array array, int index)Copies all elements from the collection to the specified array.
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot()Returns a synchronization root.

get_Item(int index)

public final ISmartArtNode get_Item(int index)

Returns node by index

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element

Returns: ISmartArtNode - The SmartArt node

size()

public final int size()

Returns count of nodes in collection Read-only int Read-only int .

Returns: int

addNode()

public final ISmartArtNode addNode()

Add new smart art node or sub node.

Returns: ISmartArtNode - Added node

removeNode(int index)

public final void removeNode(int index)

Remove node or sub node by index

Parameters:

ParameterTypeDescription
indexintZero-based index of node

removeNode(ISmartArtNode node)

public final void removeNode(ISmartArtNode node)

Remove node or sub node

Parameters:

ParameterTypeDescription
nodeISmartArtNodeNode to remove

addNodeByPosition(int position)

public final ISmartArtNode addNodeByPosition(int position)

Add new node in the selected position of nodes collection

Parameters:

ParameterTypeDescription
positionintZero-base node position

Returns: ISmartArtNode - Added node

iterator()

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

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ISmartArtNode> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<ISmartArtNode> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ISmartArtNode> - An java.util.Iterator for the entire collection.

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copies all elements from the collection to the specified array.

Parameters:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array.
indexintStarting index in the target array.

isSynchronized()

public final boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean .

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object