public class SmartArtNodeCollection extends java.lang.Object implements ISmartArtNodeCollection
Represents a collection of SmartArt nodes.
Modifier and Type | Method and Description |
---|---|
ISmartArtNode |
addNode()
Add new smart art node or sub node.
|
ISmartArtNode |
addNodeByPosition(int position)
Add new node in the selected position of nodes collection
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
ISmartArtNode |
get_Item(int index)
Returns node by index
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISmartArtNode> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
removeNode(int index)
Remove node or sub node by index
|
void |
removeNode(ISmartArtNode node)
Remove node or sub node
|
int |
size()
Returns count of nodes in collection
Read-only
int
Read-only int . |
public final ISmartArtNode get_Item(int index)
Returns node by index
get_Item
in interface ISmartArtNodeCollection
index
- The zero-based index of the elementpublic final int size()
Returns count of nodes in collection
Read-only int
Read-only int
.
size
in interface com.aspose.ms.System.Collections.ICollection<ISmartArtNode>
public final ISmartArtNode addNode()
Add new smart art node or sub node.
addNode
in interface ISmartArtNodeCollection
public final void removeNode(int index)
Remove node or sub node by index
removeNode
in interface ISmartArtNodeCollection
index
- Zero-based index of nodecom.aspose.ms.System.ArgumentOutOfRangeException
- index is less than 0. -or- index is equal to or greater than siblings countpublic final void removeNode(ISmartArtNode node)
Remove node or sub node
removeNode
in interface ISmartArtNodeCollection
node
- Node to removepublic final ISmartArtNode addNodeByPosition(int position)
Add new node in the selected position of nodes collection
addNodeByPosition
in interface ISmartArtNodeCollection
position
- Zero-base node positioncom.aspose.ms.System.ArgumentOutOfRangeException
- position is less than 0public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISmartArtNode> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ISmartArtNode>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<ISmartArtNode>
iterator
in interface java.lang.Iterable<ISmartArtNode>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final void copyTo(com.aspose.ms.System.Array array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<ISmartArtNode>
array
- Target array.index
- Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean
.
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<ISmartArtNode>
public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<ISmartArtNode>