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

Glossary Item Box

TypePictCenter Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns whether the picture in a picture cell is centered. This property is available at run time only.

Syntax

C++

BOOL CSpreadSheet::GetTypePictCenter( );
void CSpreadSheet::SetTypePictCenter(BOOL value);

Visual Basic

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

Remarks

The default value for the TypePictCenter property is False. To center a picture in a picture cell, set this property to True.

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

You can use either the TypePictCenter property or the TypeHAlign and TypeVAlign properties to specify the alignment of the picture in the cell. The TypePictCenter property just allows you to center the picture horizontally and vertically. You can use the TypeHAlign and TypeVAlign properties to customize the horizontal and vertical alignments independently. If you set all of these properties, the last property you set will specify how the control aligns the picture in the cell.

To use the TypePictCenter 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 TypePictCenter 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. Also, the TypePictCenter property does not have an affect if you set the TypePictStretch property to True, unless you also set the TypePictMaintainScale property to True.

Data Type

Integer (Boolean)

See Also

Creating Picture Cells

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

DLL Correspondence

SSSetTypePicture, SSSetTypePictureHandle functions

Copyright © GrapeCity, inc. All rights reserved.