Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class Columns

java.lang.Object
  extended by com.aspose.cells.Columns

public class Columns
extends java.lang.Object

Encapsulates a collection of Column objects.


Method Summary
 Column checkColumn(int columnIndex)
          Gets a column object by its index.
 Column getColumn(int columnIndex)
          Gets a column object by its index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColumn

public Column getColumn(int columnIndex)
Gets a column object by its index.

Parameters:
columnIndex - column index.
Returns:
a column object
Throws:
java.lang.IllegalArgumentException - if column index is out of range.
CellsException - if the worksheet has been removed from the workbook.

checkColumn

public Column checkColumn(int columnIndex)
Gets a column object by its index. if doesn't exist, then return null

Parameters:
columnIndex - column index.
Returns:
the column object if it has been defined. Otherwise, returns null.
Throws:
java.lang.IllegalArgumentException - if column index is out of range.
CellsException - if the worksheet has been removed from the workbook.