TypePictStretch Property
Applies To
fpSpread control
Description
Sets or returns whether a picture in a picture cell is sized to fit the cell. This property is available at run time only.
Syntax
BOOL CSpreadSheet::GetTypePictStretch( );
void CSpreadSheet::SetTypePictStretch(BOOL value);
[form.]fpSpread.TypePictStretch[ = boolean%]
Remarks
The default value for the TypePictStretch property is False.
When the TypePictStretch property is set to True, the picture stretches to fit into the cell regardless of the original proportions of the picture. By setting the TypePictMaintainScale property to True, the picture maintains its proportions while stretching to its maximum size within the cell.
A picture cell does not display a picture unless you specify a picture using the TypePictPicture property.
To use the TypePictStretch 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.
The TypePictStretch property does not have an effect unless the CellType property is set to 9 (Picture) and the TypePictPicture property specifies a picture for the specified cell or cells.
Spread Designer
Choose the Cell menu, the Cell Type menu, the Picture menu, and then the Settings tab, and then select the Stretch check box in the Appearance group box in the Cell Type Settings dialog box.
Data Type
Integer (Boolean)
See Also
CellType, Sheet, TypePictMaintainScale, TypePictPicture properties
DLL Correspondence
SSSetTypePicture, SSSetTypePictureHandle functions