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

Glossary Item Box

SelText Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns the selected text within the active cell. This property is available at run time only.

Syntax

C++

CString CSpreadSheet::GetSelText( );
void CSpreadSheet::SetSelText(LPCTSTR value);

Visual Basic

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

Remarks

This property is valid only when the cell is in edit mode.

You cannot use the SelText property in the EditMode event.

This setting is applied to the current sheet setting unless you first set the Sheet property to specify the sheet for which you are setting the property.

Set or return the starting point for a selection using the SelStart property. Set or return the length of the selection using the SelLength property.

Data Type

String

See Also

SelLength, SelStart, Sheet properties

EditMode event

DLL Correspondence

SSGetSelText, SSReplaceSel functions

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.