Function TWPCustomRtfEdit.AsANSIString(FormatName:string; OnlySelection:Boolean; CellsAsParagraphs:Boolean) : AnsiString

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

  • FormatName:string
  • OnlySelection:Boolean
  • CellsAsParagraphs:Boolean

Returns

The type of the result value is AnsiString.

Description

This function receives the complete contents or the current selection as a string. You can use the format strings to retrieve the text is a special format, for example AsANSIString('WPTOOLS', true) to also retrieve the selected text.
Since V6.21 ist is possible to only save the contents of a certain field or other object pair. See