SSpread.TypePictStretch Property
In the picture cell, set whether to enlarge or reduce the image according to the size of 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 enlarge or reduce the image, and $FALSE to display it in its original size. The initial value is $FALSE.
The image to be displayed is set by the TypePictPicture property. Set the TypePictMaintainScale property to $ TRUE to maintain the aspect ratio of the image when zooming in and out.
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";
TypePictStretch = $FALSE;
BlockMode = $FALSE;
Related item
CellType, TypePictMaintainScale, TypePictPicture property.