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

Glossary Item Box

TypeButtonAlign Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns the alignment of the picture and text within a button cell. This property is available at run time only.

Syntax

C++

long CSpreadSheet::GetTypeButtonAlign( );
void CSpreadSheet::SetTypeButtonAlign(long value);

Visual Basic

[form.]fpSpread.TypeButtonAlign[ = setting%]

Remarks

The following settings are available:

Setting Description Constant
0 - Text Bottom/
Picture Top
(Default) Text at the bottom, picture at the top TypeButtonAlignBottom
1 - Text Top/
Picture Bottom
Text at the top, picture at the bottom TypeButtonAlignTop
2 - Text Left/
Picture Right
Text at the left, picture at the right TypeButtonAlignLeft
3 - Text Right/
Picture Left
Text at the right, picture at the left TypeButtonAlignRight

If you use the TypeButtonAlign property to retrieve the alignment method for a block of cells that do not all use the same alignment method, the alignment method used in the active cell is returned.

To use the TypeButtonAlign 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. Once you set the TypeButtonAlign property for a cell or cells, any subsequent button cells you create will use the same TypeButtonAlign setting unless you reset it for those cells.

The TypeButtonAlign property does not have an effect unless the CellType property is set to 7 (Button) for the specified cell or cells.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Button menu, and then the Settings tab, and then select an item in the Text Pos drop-down list box in the Cell Type Settings dialog box.

Data Type

Integer (Enumerated)

See Also

Displaying Text in a Button Cell
Displaying Pictures in a Button Cell

CellType, Col, Row, Sheet, TypeButtonPicture, TypeButtonPictureDown, TypeButtonShadowSize, TypeButtonText properties

DLL Correspondence

SSSetTypeButton function

Copyright © GrapeCity, inc. All rights reserved.