com.aspose.slides
Class LinkCollection

java.lang.Object
  extended by com.aspose.slides.Links
      extended by com.aspose.slides.LinkCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<Link>, com.aspose.ms.System.Collections.IEnumerable<Link>, java.lang.Iterable<Link>

public final class LinkCollection
extends Links
implements com.aspose.ms.System.Collections.ICollection<Link>

Represents a collection of a links.


Method Summary
 Link addLink()
           Adds a new Link to the end of collection.
 void clear()
           Removes all elements from the collection.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 Link get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Gets the number of elements actually contained in the collection.
 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.IEnumerator<Link> iterator()
           Returns an enumerator for the entire collection.
 void removeAt(int index)
           Removes the element at the specified index of the collection.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<Link>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<Link>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<Link>

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<Link>

getCount

public int getCount()
Description copied from class: Links

Gets the number of elements actually contained in the collection.

Overrides:
getCount in class Links

get_Item

public Link get_Item(int index)
Description copied from class: Links

Gets the element at the specified index.

Overrides:
get_Item in class Links

addLink

public Link addLink()
Description copied from class: Links

Adds a new Link to the end of collection.

Overrides:
addLink in class Links
Returns:
New Link object.

clear

public void clear()
Description copied from class: Links

Removes all elements from the collection.

Overrides:
clear in class Links

removeAt

public void removeAt(int index)
Description copied from class: Links

Removes the element at the specified index of the collection.

Overrides:
removeAt in class Links
Parameters:
index - The zero-based index of the element to remove.

iterator

public com.aspose.ms.System.Collections.IEnumerator<Link> iterator()
Description copied from class: Links

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<Link>
Specified by:
iterator in interface java.lang.Iterable<Link>
Overrides:
iterator in class Links
Returns:
An IEnumerator for the entire collection.