Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetFormattedTextService.GetAsRTF(TdxSpreadSheetCell,string,Boolean) Method

Retrieves the specified cell object‘s formatted content as an RTF string.

#Declaration

Delphi
class function GetAsRTF(ACell: TdxSpreadSheetCell; var AValue: string; ARichEditCompatibility: Boolean): Boolean; override;

#Parameters

Name Type
ACell TdxSpreadSheetCell
AValue string
ARichEditCompatibility Boolean

#Returns

Type
Boolean

#Remarks

Call this class function and pass the source cell object as the ACell parameter to retrieve an RTF string as the AValue var parameter, provided that the cell contains a formatted RTF string. The function returns True if it successfully retrieves an RTF string; otherwise – False.

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

GetAsRTF calls the IsFormattedTextValue class function internally to identify whether the specified source cell contains any formatted text.

See Also