TypeCheckCenter Property
Applies To
fpSpread control
Description
Sets or returns whether the check box is centered in a check box cell. This property is available at run time only.
Syntax
BOOL CSpreadSheet::GetTypeCheckCenter( );
void CSpreadSheet::SetTypeCheckCenter(BOOL value);
[form.]fpSpread.TypeCheckCenter[ = boolean%]
Remarks
The default value for the TypeCheckCenter property is False, which left aligns the check box in a check box cell.
You can use either the TypeCheckCenter property or the TypeHAlign and TypeVAlign properties to specify the alignment of the picture in the cell. The TypeCheckCenter property just allows you to center the check box horizontally and vertically. You can use the TypeHAlign and TypeVAlign properties to customize the horizontal and vertical alignments independently. If you set all of these properties, the last property you set will specify how the control aligns the check box in the cell.
To use the TypeCheckCenter property, specify the sheet with which you want to work by setting the Sheet property. Then specify the cell or cells to which to apply the property, as described in Using Column and Row Properties. Once you set the TypeCheckCenter property for a cell or cells, any subsequent check box cells you create will use the same TypeCheckCenter setting unless you reset it for those cells.
The TypeCheckCenter property does not have an effect unless the CellType property is set to 10 (Check Box) for the specified cell or cells.
Data Type
Integer (Boolean)
See Also
Creating a Check Box Cell and Setting Its Type
CellType, Col, Row, Sheet, TypeCheckTextAlign, TypeHAlign, TypeVAlign properties
DLL Correspondence
SSSetTypeCheckBox function