Link Search Menu Expand Document

SSpread.TypeCheckCenter Property

In a check box type cell, set whether to place the check box in the center of the cell.

Only valid for cells with $CellTypeCheckBox (checkbox type) set in the CellType property. Before setting this property, use the Col and Row properties, and so on to specify what to do.

Specify $TRUE to center the checkbox and text in the cell, or $FALSE to place it to the left of the cell. The initial value is $FALSE.

This property only sets whether the checkbox is centered. The vertical position is set with the TypeVAlign property.

If this property is set to $TRUE, the TypeHAlign property that specifies the horizontal position is ignored.

This property is subject to property inheritance for checkbox cells.

Example of usage

Col = 3;
Row = 2;
CellType = $CellTypeCheckBox;
TypeCheckCenter = $TRUE;
 
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypeCheckBox;
TypeCheckCenter = $TRUE;
BlockMode = $FALSE;

Related Items
CellType, TextCheckTextAlign, TypeHAlign, TypeVAlign properties