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

Glossary Item Box

TypeTextPrefix Property


See Also    DLL

Applies To

fpSpread control

Description

Sets or returns whether an ampersand (&) in text in a static text cell underlines the next character. This property is available at run time only.

Syntax

C++

BOOL CSpreadSheet::GetTypeTextPrefix( );
void CSpreadSheet::SetTypeTextPrefix(BOOL value);

Visual Basic

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

Remarks

The default value for the TypeTextPrefix property is False.

When this property is set to True, typing an ampersand (&) before a character specifies to underline that character when it is displayed. You can then add code to your application to have the character behave as a mnemonic.

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

The TypeTextPrefix property does not have an effect unless the CellType property is set to 5 (Static Text) for the specified cell or cells.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Label(Static) menu, and then the Settings tab, and then select the Display Mnemonic check box in the Cell Type Settings dialog box.

Data Type

Integer (Boolean)

See Also

Creating and Customizing a Static Text Cell

CellType, Sheet properties

DLL Correspondence

SSSetTypeStaticText function

Copyright © GrapeCity, inc. All rights reserved.