rvico TRichView Reference | TRichView

TCustomRichView.Clear

Top  Previous  Next

Clears the document.

procedure Clear; virtual;

This method:

deletes all items;

turns off displaying soft page breaks;

clears DocProperties;

clears DocObjects;

stops live spelling check;

stops animations, if AnimationMode = rvaniOnFormat.

This method does not change collections of text, paragraph and list styles. So, if your application adds styles while editing, call DeleteUnusedStyles after Clear.

Method type: generally, it's a viewerstyle viewer-style method, but it is special, because it clears all editing and displaying history. It is a starting method for document generation.

This method is called by the methods: LoadRVF, LoadRVFFromStream.

See also methods:

Format.

See also method of TRichViewEdit:

Clear.

See also:

Methods for building documents.

 


TRichView © trichview.com