TabCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ITabCollection, com.aspose.slides.IDOMObject

public final class TabCollection implements ITabCollection, IDOMObject

Represents a collection of tabs.

Methods

MethodDescription
size()Gets the number of elements actually contained in the collection.
get_Item(int index)Gets the element at the specified index.
add(double position, int align)Adds a Tab to the collection.
add(ITab value)Adds a Tab to the collection.
clear()Removes all elements from the collection.
removeAt(int index)Removes the element at the specified index of the collection.
getParent_Immediate()
equals(Object obj)Determines whether two TabsEx instances are equal.
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.

size()

public final int size()

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

Returns: int

get_Item(int index)

public final ITab get_Item(int index)

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

Parameters:

ParameterTypeDescription
indexint

Returns: ITab

add(double position, int align)

public final ITab add(double position, int align)

Adds a Tab to the collection.

Parameters:

ParameterTypeDescription
positiondouble
alignint

Returns: ITab - Added tab.

add(ITab value)

public final int add(ITab value)

Adds a Tab to the collection.

Parameters:

ParameterTypeDescription
valueITabThe Tab object to be added at the end of the collection.

Returns: int - The index at which the tab was added.

clear()

public final void clear()

Removes all elements from the collection.

removeAt(int index)

public final void removeAt(int index)

Removes the element at the specified index of the collection.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to remove.

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject

equals(Object obj)

public boolean equals(Object obj)

Determines whether two TabsEx instances are equal.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe TabsEx to compare with the current TabsEx.

Returns: boolean - true if the specified TabsEx is equal to the current TabsEx; otherwise, false.

iterator()

public final System.Collections.Generic.IGenericEnumerator<ITab> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ITab> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<ITab> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ITab> - 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:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array.
indexintStarting 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