SSpread.TypePictMaintainScale Property
In the picture cell, set whether to maintain the aspect ratio when the image is enlarged or reduced.
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 if you want to keep the aspect ratio, otherwise specify $FALSE . The initial value is $FALSE .
The image to be displayed is set by the TypePictPicture property. Set the TypePictStretch property to $TRUE to scale the image to fit the cell size.
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, TypePictPicture, TypePictStretch properties.