rvico TRichView Reference | TRichView

TCustomRichView.AppendFrom

Top  Previous  Next

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

procedure AppendFrom(Source: TCustomRichView);

This method does not copy inserted controls and tables (just ignores them).

Both source and target RichViews must have equal tag modes (see rvoTagsArePChars in Options).

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.


RichView © Sergey Tkachenko