Skip to main content

TdxSpreadSheetFormattedTextService.ForceSetAsRTF(TdxSpreadSheetCell,string) Method

Assigns an RTF string to the specified cell object.

Declaration

class function ForceSetAsRTF(ACell: TdxSpreadSheetCell; const AEditValue: string): Boolean; override;

Parameters

Name Type
ACell TdxSpreadSheetCell
AEditValue string

Returns

Type
Boolean

Remarks

This class function accepts the target cell object as the ACell parameter and attempts to replace the current cell value with the AEditValue string. The function returns True if it accepts a string that starts with ‘{\rtf’ that is, an RTF string); otherwise – False.

Data export routines call the ForceSetAsRTF function internally to copy values from cells that use in-place rich edit controls to the corresponding cells in an intermediate non-visual Table View worksheet during export operations.

See Also