Spread 8.0 Documentation
CTStringFormat Event
Support Options
ActiveX Reference > ActiveX Events > CTStringFormat Event

Glossary Item Box

CTStringFormat Event


See Also

Applies To

fpSpread control

Description

Occurs when the value in a custom cell needs to be formatted as a string.

Syntax

C++

afx_msg void OnCTStringFormatfpSpread(LPCTSTRName, const VARIANT FAR& RendererControl,const VARIANT FAR& Value, long Style,BSTR FAR* Formatted);

Visual Basic

Sub fpSpread_CTStringFormat(ByVal Name As String, ByVal RendererControl As Variant, ByVal Value As Variant,ByVal Style As Long, Formatted As String)

Parameters

The following parameters are available:

Parameter Description
Name Name of the custom cell type
RendererControl Renderer control to use for editing the cell
Value Value in the custom cell
Style Style for the editor control
Formatted Formatted string

Remarks

This event is for converting a value to a string. This event fires even if the value is a string.

Note: This event fires when the value in a custom cell type needs to be formatted as a string. This value is returned with the Value and ClipValue properties, used for exporting to a tab delimited file, and used for clipboard copy or cut operations.

See Also

SheetSendingEvent property

SS_CT_STRINGFORMAT_ARGS structure

CTCancelEditing events

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