Spread 8.0 Documentation
TypePictMaintainScale Property
Support Options
ActiveX Reference > ActiveX Properties > TypePictMaintainScale Property

Glossary Item Box

TypePictMaintainScale Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns whether the application maintains the proportions of a picture in a picture cell when it sizes the picture. This property is available at run time only.

Syntax

C++

BOOL CSpreadSheet::GetTypePictMaintainScale( );
void CSpreadSheet::SetTypePictMaintainScale(BOOL value);

Visual Basic

[form.]fpSpread.TypePictMaintainScale[ = boolean%]

Remarks

The default value for the TypePictMaintainScale property is False.

Use the TypePictMaintainScale property in conjunction with the TypePictStretch property. When the TypePictStretch property is set to True, the picture will stretch to fit into the cell regardless of the proportions of the picture unless the TypePictMaintainScale property is set to True, which sizes the picture to fit at the maximum size it can without changing its proportions.

If you set the TypePictMaintainScale property to True, you can specify the alignment of the picture in the cell by setting the TypePictCenter or the TypeHAlign and TypeVAlign properties.

A picture cell does not display a picture unless you specify a picture using the TypePictPicture property.

To use the TypePictMaintainScale 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 TypePictMaintainScale property does not have an effect unless the CellType property is set to 9 (Picture), and the TypePictPicture property specifies a picture, and the TypePictStretch property is set to True 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 Maintain Scale check box in the Appearance group box in the Cell Type Settings dialog box.

The Stretch check box under Appearance must be checked for the Maintain Scale check box to be available.

Data Type

Integer (Boolean)

See Also

Creating Picture Cells

CellType, Sheet, TypeHAlign, TypePictCenter, TypePictPicture, TypePictStretch, TypeVAlign properties

DLL Correspondence

SSSetTypePicture, SSSetTypePictureHandle functions

Copyright © GrapeCity, inc. All rights reserved.