com.aspose.slides
Class SmartArtNodeCollection

java.lang.Object
  extended by com.aspose.slides.SmartArtNodeCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ISmartArtNode>, com.aspose.ms.System.Collections.IEnumerable<ISmartArtNode>, IGenericCollection<ISmartArtNode>, ISmartArtNodeCollection, java.lang.Iterable<ISmartArtNode>

public class SmartArtNodeCollection
extends java.lang.Object
implements ISmartArtNodeCollection

Represents a collection of SmartArt nodes.


Method Summary
 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(ISmartArtNode[] array, int index)
           Copies all elements from the collection to the specified array.
 ISmartArtNode get_Item(int index)
           Returns node by index
 ISmartArtNode getNodeByPosition(int position)
          Deprecated. 
 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
 boolean removeNodeByPosition(int position)
          Deprecated. 
 int size()
           Returns count of nodes in collection Read-only int.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_Item

public ISmartArtNode get_Item(int index)

Returns node by index

Specified by:
get_Item in interface ISmartArtNodeCollection
Parameters:
index - The zero-based index of the element
Returns:
The SmartArt node

size

public int size()

Returns count of nodes in collection Read-only int.

Specified by:
size in interface IGenericCollection<ISmartArtNode>

getNodeByPosition

@Deprecated
public ISmartArtNode getNodeByPosition(int position)
Deprecated. 

Description copied from interface: ISmartArtNodeCollection

Get node by position between siblings.

Specified by:
getNodeByPosition in interface ISmartArtNodeCollection
Parameters:
position - Zero-based position.
Returns:
First matched node, -or- null if node with this position does not exist.

addNode

public ISmartArtNode addNode()

Add new smart art node or sub node.

Specified by:
addNode in interface ISmartArtNodeCollection
Returns:
Added node

removeNode

public void removeNode(int index)

Remove node or sub node by index

Specified by:
removeNode in interface ISmartArtNodeCollection
Parameters:
index - Zero-based index of node
Throws:
com.aspose.ms.System.ArgumentOutOfRangeException - index is less than 0. -or- index is equal to or greater than siblings count

removeNode

public void removeNode(ISmartArtNode node)

Remove node or sub node

Specified by:
removeNode in interface ISmartArtNodeCollection
Parameters:
node - Node to remove

removeNodeByPosition

@Deprecated
public boolean removeNodeByPosition(int position)
Deprecated. 

Description copied from interface: ISmartArtNodeCollection

Remove node from selected position.

Specified by:
removeNodeByPosition in interface ISmartArtNodeCollection
Parameters:
position - Zero-based position.
Returns:
True if removed successfully, otherwise false.

addNodeByPosition

public ISmartArtNode addNodeByPosition(int position)

Add new node in the selected position of nodes collection

Specified by:
addNodeByPosition in interface ISmartArtNodeCollection
Parameters:
position - Zero-base node position
Returns:
Added node
Throws:
com.aspose.ms.System.ArgumentOutOfRangeException - position is less than 0

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISmartArtNode> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ISmartArtNode>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<ISmartArtNode>
Specified by:
iterator in interface java.lang.Iterable<ISmartArtNode>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

copyTo

public void copyTo(ISmartArtNode[] array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface IGenericCollection<ISmartArtNode>
Parameters:
array -
index -

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface IGenericCollection<ISmartArtNode>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Specified by:
getSyncRoot in interface IGenericCollection<ISmartArtNode>


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.