com.spire.presentation.collections
Class ColumnList

java.lang.Object
  extended by com.spire.presentation.collections.ColumnList
All Implemented Interfaces:
com.spire.ms.System.Collections.IEnumerable, java.lang.Iterable
Direct Known Subclasses:
ColumnCollection

public class ColumnList
extends java.lang.Object
implements com.spire.ms.System.Collections.IEnumerable

Represents collection of columns in a table.


Constructor Summary
ColumnList()
           
 
Method Summary
 void add(TableColumn template)
          Insert column in a table.
 TableColumn get(int index)
          Gets the column at the specified index.
 int getCount()
          Gets the number of columns in a collection.
 void insert(int index, TableColumn template)
          Insert column in a table.
 com.spire.ms.System.Collections.IEnumerator iterator()
           
 void removeAt(int firstColumnIndex, boolean withAttachedRows)
          Removes a column at the specified position from a table.
 

Constructor Detail

ColumnList

public ColumnList()
Method Detail

get

public TableColumn get(int index)
Gets the column at the specified index. Read-only .

Parameters:
index -
Returns:

getCount

public int getCount()
Gets the number of columns in a collection. Read-only .

Returns:

insert

public void insert(int index,
                   TableColumn template)
            throws DocumentEditException
Insert column in a table.

Parameters:
index -
template -
Throws:
DocumentEditException
PptEditException

add

public void add(TableColumn template)
         throws DocumentEditException
Insert column in a table.

Parameters:
template -
Throws:
DocumentEditException
PptEditException

removeAt

public void removeAt(int firstColumnIndex,
                     boolean withAttachedRows)
              throws DocumentEditException
Removes a column at the specified position from a table.

Parameters:
firstColumnIndex -
withAttachedRows -
Throws:
DocumentEditException

iterator

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