TCustomRichView.AppendFrom

<< Click to display table of contents >>

TCustomRichView.AppendFrom

Adds content of another RichView component (Source) to the end of document.

procedure AppendFrom(Source: TCustomRichView);

This method does not copy items of some types (including inserted controls and tables) (it just ignores them).

This method is the fastest way to copy items from one TRichView to another, but it has the limitations listed above.

The recommended way of copying is:

var Stream: TMemoryStream;

begin

  Stream := TMemoryStream.Create;

  try

    Source.SaveRVFToStream(Stream, False);

    Stream.Position := 0;

    Dest.LoadRVFFromStream(Stream);

    Dest.Format;

  finally

    Stream.Free;

  end;

end;

Method type: viewerstyle viewer-style.

See also methods:

Format;

FormatTail.

See also:

Other methods for appending items.