SmartArtNodeCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ISmartArtNodeCollection

public class SmartArtNodeCollection implements ISmartArtNodeCollection

Represents a collection of SmartArt nodes.

Methods

Method Description
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:

Parameter Type Description
index int The 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:

Parameter Type Description
index int Zero-based index of node

removeNode(ISmartArtNode node)

public final void removeNode(ISmartArtNode node)

Remove node or sub node

Parameters:

Parameter Type Description
node ISmartArtNode Node to remove

addNodeByPosition(int position)

public final ISmartArtNode addNodeByPosition(int position)

Add new node in the selected position of nodes collection

Parameters:

Parameter Type Description
position int Zero-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:

Parameter Type Description
array com.aspose.ms.System.Array Target array.
index int Starting 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