Skip to main content

TdxSpreadSheetFormattedTextService.SetAsRTF(TdxSpreadSheetCell,string) Method

Assigns an RTF string to the specified cell object.

Declaration

class function SetAsRTF(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 formatted RTF string; otherwise – False.

You can call a cell object’s SetAsRTF function to achieve the same end.

SetAsRTF calls the IsFormattedTextValue class function internally to identify whether the specified text string has formatting.

See Also