ColumnCollection

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.IColumnCollection

public final class ColumnCollection extends DomObject<RowCollection> implements IColumnCollection

Represents collection of columns in a table.

Methods

MethodDescription
size()Returns the number of columns in a collection.
get_Item(int index)Returns the column at the specified index.
addClone(IColumn templ, boolean withAttachedColumns)Creates a copy of the specified template row and inserts it at the bottom of a table.
insertClone(int index, IColumn templ, boolean withAttachedColumns)Creates a copy of the specified template column and insert it at the specified position in a table.
removeAt(int firstColumnIndex, boolean withAttachedRows)Removes a column at the specified position from a table.
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()

Returns the number of columns in a collection. Read-only int.

Returns: int

get_Item(int index)

public final IColumn get_Item(int index)

Returns the column at the specified index. Read-only Column.

Parameters:

ParameterTypeDescription
indexint

Returns: IColumn

addClone(IColumn templ, boolean withAttachedColumns)

public final IColumn[] addClone(IColumn templ, boolean withAttachedColumns)

Creates a copy of the specified template row and inserts it at the bottom of a table.

Parameters:

ParameterTypeDescription
templIColumnColumn which is used as a template.
withAttachedColumnsbooleanTrue to copy also all columns attached to the template row.

Returns: com.aspose.slides.IColumn[] - Added columns.

insertClone(int index, IColumn templ, boolean withAttachedColumns)

public final IColumn[] insertClone(int index, IColumn templ, boolean withAttachedColumns)

Creates a copy of the specified template column and insert it at the specified position in a table.

Parameters:

ParameterTypeDescription
indexintIndex of a new column.
templIColumnColumn which is used as a template.
withAttachedColumnsbooleanTrue to copy also all columns attached to the template column.

Returns: com.aspose.slides.IColumn[] - Inserted columns.

removeAt(int firstColumnIndex, boolean withAttachedRows)

public final void removeAt(int firstColumnIndex, boolean withAttachedRows)

Removes a column at the specified position from a table.

Parameters:

ParameterTypeDescription
firstColumnIndexintIndex of a column to delete.
withAttachedRowsbooleanTrue to delete also all attached columns.

iterator()

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

Returns an enumerator that iterates through the collection.

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

iteratorJava()

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

Returns a java iterator for the entire collection.

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