Package com.grapecity.documents.excel
Class CheckBoxCellType
java.lang.Object
com.grapecity.documents.excel.BaseCellType
com.grapecity.documents.excel.CheckBoxCellType
Represents a check box cell.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether check box size changes with font size.intGets a value that indicates the check box size.Gets the caption of the cell type.booleanGets a value that indicates whether the check box supports three states.Gets the text alignment relative to the check box.Gets the text in the cell when the cell's value is false.Gets the text in the cell when the cell's value is indeterminate (neither true nor false).Gets the text in the cell when the cell's value is true.voidsetAutoBoxSize(boolean value) Sets whether check box size changes with font size.voidsetBoxSize(int value) Sets a value that indicates the check box size.voidsetCaption(String value) Sets the caption of the cell type.voidsetIsThreeState(boolean value) Sets a value that indicates whether the check box supports three states.voidsetTextAlign(CheckBoxAlign value) Sets the text alignment relative to the check box.voidsetTextFalse(String value) Sets the text in the cell when the cell's value is false.voidsetTextIndeterminate(String value) Sets the text in the cell when the cell's value is indeterminate (neither true nor false).voidsetTextTrue(String value) Sets the text in the cell when the cell's value is true.
-
Constructor Details
-
CheckBoxCellType
public CheckBoxCellType()Create a check box cell type.
-
-
Method Details
-
getCaption
Gets the caption of the cell type.- Returns:
- The caption of the checkbox.
-
setCaption
Sets the caption of the cell type.- Parameters:
value- The caption of the check box.
-
getTextTrue
Gets the text in the cell when the cell's value is true.- Returns:
- The text for true value.
-
setTextTrue
Sets the text in the cell when the cell's value is true.- Parameters:
value- The text for true value.
-
getTextFalse
Gets the text in the cell when the cell's value is false.- Returns:
- The text for false value.
-
setTextFalse
Sets the text in the cell when the cell's value is false.- Parameters:
value- The text for false value.
-
getTextIndeterminate
Gets the text in the cell when the cell's value is indeterminate (neither true nor false).- Returns:
- The text for indeterminate value.
-
setTextIndeterminate
Sets the text in the cell when the cell's value is indeterminate (neither true nor false).- Parameters:
value- The text for indeterminate value.
-
getTextAlign
Gets the text alignment relative to the check box.- Returns:
- The text alignment relative to the check box.
-
setTextAlign
Sets the text alignment relative to the check box.- Parameters:
value- The text alignment relative to the check box.
-
getIsThreeState
public boolean getIsThreeState()Gets a value that indicates whether the check box supports three states.- Returns:
- True if the check box supports three states, false otherwise.
-
setIsThreeState
public void setIsThreeState(boolean value) Sets a value that indicates whether the check box supports three states.- Parameters:
value- True if the check box supports three states, false otherwise.
-
getBoxSize
public int getBoxSize()Gets a value that indicates the check box size.- Returns:
- The size of the check box.
-
setBoxSize
public void setBoxSize(int value) Sets a value that indicates the check box size.- Parameters:
value- The size of the check box.
-
getAutoBoxSize
public boolean getAutoBoxSize()Gets whether check box size changes with font size.- Returns:
- True if the check box size changes with font size, false otherwise.
-
setAutoBoxSize
public void setAutoBoxSize(boolean value) Sets whether check box size changes with font size.- Parameters:
value- True if the check box size changes with font size, false otherwise.
-