Skip to main content

TdxSpreadSheetTextService.SetAsRTF(TdxSpreadSheetCell,string) Method

Assigns a formatted RTF string to the specified cell object.

Declaration

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

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 an RTF string passed as the AEditValue parameter. The function returns True if an attempt is successful; otherwise – False. A cell object’s SetAsRTF function calls the registered spreadsheet text service’s SetAsRTF function via the dxSpreadSheetTextService global variable.

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

See Also