SSpread.TypePictCenter Property
In a picture cell, set whether to center the image in the cell.
Only valid for cells with the CellType property set to $CellTypePicture.
Before setting this property, use the Col , Row properties, and so on to specify what to do.
Specify $TRUE to place the image in the center of the cell and $FALSE to place it in the upper left of the cell . The initial value is $FALSE .
This property can only be set to center the image, but you can set the horizontal and vertical positions by using the TypeHAlign and TypeVAlign properties, respectively.
This property is subject to property inheritance for picture cells .
Use case
Col = 3;
Row = 2;
CellType = $CellTypePicture;
TypePictPicture = "img/sample1.png";
TypePictStretch = $TRUE;
TypePictMaintainScale = $TRUE;
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypePicture;
TypePictPicture = "img/sample2.png";
TypePictMaintainScale = $FALSE;
BlockMode = $FALSE;
Related item
CellType, TypeHAlign , TypeVAlign properties.