Class Column
java.lang.Object
com.independentsoft.office.spreadsheet.Column
The Class Column.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intGets the first column.intGets the last column.intGets the outline level.intGets the style id.doublegetWidth()Gets the width.booleanChecks for custom width.booleanChecks if is best fit.booleanChecks if is collapsed.booleanisHidden()Checks if is hidden.booleanChecks if is show phonetic.voidsetBestFit(boolean bestFit)Sets the best fit.voidsetCollapsed(boolean isCollapsed)Sets the collapsed.voidsetCustomWidth(boolean hasCustomWidth)Sets the custom width.voidsetFirstColumn(int firstColumn)Sets the first column.voidsetHidden(boolean isHidden)Sets the hidden.voidsetLastColumn(int lastColumn)Sets the last column.voidsetOutlineLevel(int outlineLevel)Sets the outline level.voidsetShowPhonetic(boolean showPhonetic)Sets the show phonetic.voidsetStyleID(int styleID)Sets the style id.voidsetWidth(double width)Sets the width.toString()
-
Constructor Details
-
Column
public Column()Instantiates a new column. -
Column
public Column(int firstColumn, int lastColumn)Instantiates a new column.- Parameters:
firstColumn- the first columnlastColumn- the last column
-
-
Method Details
-
clone
-
toString
-
isBestFit
public boolean isBestFit()Checks if is best fit.- Returns:
- true, if is best fit
-
setBestFit
public void setBestFit(boolean bestFit)Sets the best fit.- Parameters:
bestFit- the new best fit
-
isCollapsed
public boolean isCollapsed()Checks if is collapsed.- Returns:
- true, if is collapsed
-
setCollapsed
public void setCollapsed(boolean isCollapsed)Sets the collapsed.- Parameters:
isCollapsed- the new collapsed
-
hasCustomWidth
public boolean hasCustomWidth()Checks for custom width.- Returns:
- true, if successful
-
setCustomWidth
public void setCustomWidth(boolean hasCustomWidth)Sets the custom width.- Parameters:
hasCustomWidth- the new custom width
-
isHidden
public boolean isHidden()Checks if is hidden.- Returns:
- true, if is hidden
-
setHidden
public void setHidden(boolean isHidden)Sets the hidden.- Parameters:
isHidden- the new hidden
-
getLastColumn
public int getLastColumn()Gets the last column.- Returns:
- the last column
-
setLastColumn
public void setLastColumn(int lastColumn)Sets the last column.- Parameters:
lastColumn- the new last column
-
getFirstColumn
public int getFirstColumn()Gets the first column.- Returns:
- the first column
-
setFirstColumn
public void setFirstColumn(int firstColumn)Sets the first column.- Parameters:
firstColumn- the new first column
-
getOutlineLevel
public int getOutlineLevel()Gets the outline level.- Returns:
- the outline level
-
setOutlineLevel
public void setOutlineLevel(int outlineLevel)Sets the outline level.- Parameters:
outlineLevel- the new outline level
-
isShowPhonetic
public boolean isShowPhonetic()Checks if is show phonetic.- Returns:
- true, if is show phonetic
-
setShowPhonetic
public void setShowPhonetic(boolean showPhonetic)Sets the show phonetic.- Parameters:
showPhonetic- the new show phonetic
-
getStyleID
public int getStyleID()Gets the style id.- Returns:
- the style id
-
setStyleID
public void setStyleID(int styleID)Sets the style id.- Parameters:
styleID- the new style id
-
getWidth
public double getWidth()Gets the width.- Returns:
- the width
-
setWidth
public void setWidth(double width)Sets the width.- Parameters:
width- the new width
-