Package com.grapecity.documents.excel
Class CheckBoxListCellType
java.lang.Object
com.grapecity.documents.excel.BaseCellType
com.grapecity.documents.excel.CheckBoxListCellType
Represents a check-box-list cell type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether boxSize changes with font size.intGets a value that indicates the check box size.Gets the direction of the check-box-list.intGets the horizontal spacing in the check-box-list.booleanGets the check-box-list's layout is autofit.getItems()Gets the items for the check-box-list list.intGets the items for the check-box-list's column count.intGets the items for the check-box-list's row count.Gets the text of check-box-list's alignment, only support left and right.intGets the vertical spacing in the check-box-list.voidsetAutoBoxSize(boolean value) Sets whether boxSize changes with font size.voidsetBoxSize(int value) Sets a value that indicates the check box size.voidsetDirection(CellTypeDirection direction) Sets the direction of the check-box-list.voidsetHorizontalSpacing(int horizontalSpacing) Sets the horizontal spacing in the check-box-list.voidsetIsFlowLayout(boolean isFlowLayout) Sets the check-box-list's layout is autofit.voidsetMaxColumnCount(int maxColumnCount) Sets the items for the check-box-list's column count.voidsetMaxRowCount(int maxRowCount) Sets the items for the check-box-list's row count.voidsetTextAlign(CellTypeTextAlign textAlign) Sets the text of check-box-list's alignment, only support left and right.voidsetVerticalSpacing(int verticalSpacing) Sets the vertical spacing in the check-box-list.
-
Constructor Details
-
CheckBoxListCellType
public CheckBoxListCellType()Create a check-box-list cell type.
-
-
Method Details
-
getItems
Gets the items for the check-box-list list.- Returns:
- The list of check-box-list item.
-
getDirection
Gets the direction of the check-box-list.- Returns:
- The direction in which the check-box-list are arranged, such as horizontal or vertical.
-
setDirection
Sets the direction of the check-box-list.- Parameters:
direction- The direction in which the check-box-list items are arranged.
-
getIsFlowLayout
public boolean getIsFlowLayout()Gets the check-box-list's layout is autofit.- Returns:
- True if the check-box-list's layout is autofit, false otherwise.
-
setIsFlowLayout
public void setIsFlowLayout(boolean isFlowLayout) Sets the check-box-list's layout is autofit.- Parameters:
isFlowLayout- True if the check-box-list's layout is autofit, false otherwise.
-
getTextAlign
Gets the text of check-box-list's alignment, only support left and right.- Returns:
- The text alignment of the check-box-list, such as left or right.
-
setTextAlign
Sets the text of check-box-list's alignment, only support left and right.- Parameters:
textAlign- The text alignment of the check-box-list.
-
setMaxRowCount
public void setMaxRowCount(int maxRowCount) Sets the items for the check-box-list's row count.- Parameters:
maxRowCount- The maximum number of rows for the check-box-list.
-
getMaxRowCount
public int getMaxRowCount()Gets the items for the check-box-list's row count.- Returns:
- The maximum number of rows for the check-box-list.
-
setMaxColumnCount
public void setMaxColumnCount(int maxColumnCount) Sets the items for the check-box-list's column count.- Parameters:
maxColumnCount- The maximum number of columns for the check-box-list.
-
getMaxColumnCount
public int getMaxColumnCount()Gets the items for the check-box-list's column count.- Returns:
- The maximum number of columns for the check-box-list.
-
setHorizontalSpacing
public void setHorizontalSpacing(int horizontalSpacing) Sets the horizontal spacing in the check-box-list.- Parameters:
horizontalSpacing- The horizontal spacing between check-box-list items.
-
getHorizontalSpacing
public int getHorizontalSpacing()Gets the horizontal spacing in the check-box-list.- Returns:
- The horizontal spacing in the check-box-list.
-
setVerticalSpacing
public void setVerticalSpacing(int verticalSpacing) Sets the vertical spacing in the check-box-list.- Parameters:
verticalSpacing- The vertical spacing between check-box-list items.
-
getVerticalSpacing
public int getVerticalSpacing()Gets the vertical spacing in the check-box-list.- Returns:
- The vertical spacing in the check-box-list.
-
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 boxSize 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 boxSize changes with font size.- Parameters:
value- True if the check box size changes with font size, false otherwise.
-