Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate

com.aspose.cells
Class Column

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

public class Column
extends java.lang.Object

Represents a single column in a worksheet.


Method Summary
 void applyStyle(Style style, StyleFlag flag)
          Applies formattings for a whole column.
 Style getStyle()
          Gets the style setting for the column.
 boolean isUsingDefaultWidth()
          Indicates whether column has default column width.
 void setStyle(Style style)
          Sets a style to the column.
 void setUseDefaultWidth(boolean isUsingDefaultWidth)
          Sets whether column has default column width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setStyle

public void setStyle(Style style)
Sets a style to the column.

Parameters:
style - style to set.
Throws:
CellsException - if the worksheet has been removed from the workbook.

applyStyle

public void applyStyle(Style style,
                       StyleFlag flag)
Applies formattings for a whole column.

Parameters:
style - The style object which will be applied.
flag - Flags which indicates applied formatting properties.

getStyle

public Style getStyle()
Gets the style setting for the column.

Returns:
style of the column.
Throws:
CellsException - if the worksheet has been removed from the workbook.

isUsingDefaultWidth

public boolean isUsingDefaultWidth()
Indicates whether column has default column width.

Returns:
whether column has default column width.

setUseDefaultWidth

public void setUseDefaultWidth(boolean isUsingDefaultWidth)
Sets whether column has default column width.

Parameters:
isUsingDefaultWidth - column has default column width.