com.aspose.slides
Class TabCollection

java.lang.Object
  extended by com.aspose.slides.TabCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ITab>, com.aspose.ms.System.Collections.ICollection<ITab>, com.aspose.ms.System.Collections.IEnumerable<ITab>, ITabCollection, java.lang.Iterable<ITab>

public final class TabCollection
extends java.lang.Object
implements ITabCollection

Represents a collection of tabs.


Method Summary
 ITab add(double position, int align)
           Adds a Tab to the collection.
 int add(ITab value)
           Adds a Tab to the 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.
 boolean equals(java.lang.Object obj)
           Determines whether two TabsEx instances are equal.
 ITab get_Item(int index)
           Gets the element at the specified 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<ITab> iterator()
           Returns an enumerator that iterates through the collection.
 void removeAt(int index)
           Removes the element at the specified index of the collection.
 int size()
           Gets the number of elements actually contained in the collection.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()

Gets the number of elements actually contained in the collection. Read-only int.

Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<ITab>

get_Item

public ITab get_Item(int index)

Gets the element at the specified index. Read-only Tab.

Specified by:
get_Item in interface ITabCollection

add

public ITab add(double position,
                int align)

Adds a Tab to the collection.

Specified by:
add in interface ITabCollection
Returns:
Added tab.

add

public int add(ITab value)

Adds a Tab to the collection.

Specified by:
add in interface ITabCollection
Parameters:
value - The Tab object to be added at the end of the collection.
Returns:
The index at which the tab was added.

clear

public void clear()

Removes all elements from the collection.

Specified by:
clear in interface ITabCollection

removeAt

public void removeAt(int index)

Removes the element at the specified index of the collection.

Specified by:
removeAt in interface ITabCollection
Parameters:
index - The zero-based index of the element to remove.

iterator

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

Returns an enumerator that iterates through the collection.

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

equals

public boolean equals(java.lang.Object obj)

Determines whether two TabsEx instances are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The TabsEx to compare with the current TabsEx.
Returns:
<b>true</b> if the specified TabsEx is equal to the current TabsEx; otherwise, <b>false</b>.

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<ITab>
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<ITab>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

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