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

TdxSpreadSheetTextService.ForceSetAsRTF(TdxSpreadSheetCell,string) Method

Assigns an RTF string to the specified cell object.

#Declaration

Delphi
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