CTStringFormat Event
Applies To
fpSpread control
Description
Occurs when the value in a custom cell needs to be formatted as a string.
Syntax
afx_msg void OnCTStringFormatfpSpread(LPCTSTRName, const VARIANT FAR& RendererControl,const VARIANT FAR& Value, long Style,BSTR FAR* Formatted);
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