Skip to main content

TdxSpreadSheetTextService.ForceSetAsRTF(TdxSpreadSheetCell,string) Method

Assigns an RTF string to the specified cell object.

Declaration

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

Parameters

Name Type
ACell TdxSpreadSheetCell
AEditValue string

Returns

Type
Boolean

Remarks

This class function works similar to SetAsRTF. Unlike it, ForceSetAsRTF successfully assigns any string it accepts as the AEditValue parameter, if the string starts with ‘{\rtf’.

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.

This ForceSetAsRTF function’s implementation is empty and always returns False, since the basic text service dose not support formatted text. Each TdxSpreadSheetTextService class descendant that provides support for RTF string has its own ForceSetAsRTF function implementation.

See Also