IColumnCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IColumnCollection extends IGenericCollection<IColumn>

Represents collection of columns in a table.

Methods

Method Description
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.

get_Item(int index)

public abstract IColumn get_Item(int index)

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

Parameters:

Parameter Type Description
index int

Returns: IColumn

addClone(IColumn templ, boolean withAttachedColumns)

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

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

Parameters:

Parameter Type Description
templ IColumn Column which is used as a template.
withAttachedColumns boolean True 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 abstract 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:

Parameter Type Description
index int Index of a new column.
templ IColumn Column which is used as a template.
withAttachedColumns boolean True to copy also all columns attached to the template column.

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

removeAt(int firstColumnIndex, boolean withAttachedRows)

public abstract void removeAt(int firstColumnIndex, boolean withAttachedRows)

Removes a column at the specified position from a table.

Parameters:

Parameter Type Description
firstColumnIndex int Index of a column to delete.
withAttachedRows boolean True to delete also all attached columns.