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

Glossary Item Box

TypeButtonText Property


See Also    DLL    Example 1    Example 2

Applies To

fpSpread control

Description

Sets or returns the text to display in a button cell. This property is available at run time only.

Syntax

C++

CString CSpreadSheet::GetTypeButtonText( );
void CSpreadSheet::SetTypeButtonText(LPCTSTR value);

Visual Basic

[form.]fpSpread.TypeButtonText[ = text$]

Remarks

Text, pictures, or both can appear in the specified button. If you use both, use the TypeButtonAlign property to specify positioning.

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

The TypeButtonText 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 type text in the Text edit box in the Cell Type Settings dialog box.

Data Type

String

See Also

Displaying Text in a Button Cell

CellType, Col, Row, Sheet, TypeButtonAlign, TypeButtonPicture, TypeButtonPictureDown, TypeButtonTextColor properties

DLL Correspondence

SSGetButtonText, SSSetButtonText functions

Copyright © GrapeCity, inc. All rights reserved.