com.aspose.slides
Class ColumnCollection

java.lang.Object
  extended by com.aspose.slides.ColumnCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, IColumnCollection, java.lang.Iterable

public final class ColumnCollection
extends java.lang.Object
implements IColumnCollection

Represents collection of columns in a table.


Method Summary
 IColumn[] addClone(IColumn templ, boolean withAttachedColumns)
           Creates a copy of the specified template row and inserts it at the bottom of a table.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 IColumn get_Item(int index)
           Returns the column at the specified index.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 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.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator iterator()
           Returns an enumerator for the entire collection.
 void removeAt(int firstColumnIndex, boolean withAttachedRows)
           Removes a column at the specified position from a table.
 int size()
           Returns the number of columns in a collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_Item

public IColumn get_Item(int index)

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

Specified by:
get_Item in interface IColumnCollection

size

public int size()

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

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

addClone

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

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

Specified by:
addClone in interface IColumnCollection
Parameters:
templ - Column which is used as a template.
withAttachedColumns - True to copy also all columns attached to the template row.
Returns:
Added columns.

insertClone

public 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.

Specified by:
insertClone in interface IColumnCollection
Parameters:
index - Index of a new column.
templ - Column which is used as a template.
withAttachedColumns - True to copy also all columns attached to the template column.
Returns:
Inserted columns.

removeAt

public void removeAt(int firstColumnIndex,
                     boolean withAttachedRows)

Removes a column at the specified position from a table.

Specified by:
removeAt in interface IColumnCollection
Parameters:
firstColumnIndex - Index of a column to delete.
withAttachedRows - True to delete also all attached columns.

iterator

public com.aspose.ms.System.Collections.IEnumerator iterator()

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable
Specified by:
iterator in interface java.lang.Iterable
Returns:
An IEnumerator for the entire collection.

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

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

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