TCustomRichView.DeleteParas

<< Click to display table of contents >>

TCustomRichView.DeleteParas

Deletes paragraph(s) containing items from FirstItemNo to LastItemNo, updates the document

procedure DeleteParas(FirstItemNo, LastItemNo: Integer);

(introduced in version 1.7)

This method is designed specially for chat/log windows. Together with FormatTail, it allows updating chat windows faster, without complete reformatting.

Items are indexed from 0 to ItemCount-1..

Method type: unique method. Unlike all other methods of TRichView, it quickly reformats TRichView, so you do not need to call Format after it. Like editing-style methods, this method requires document to be formatted before calling, and leaves it formatted after. But it is still a viewer-style method, because it does not update undo buffers, does not check ReadOnly property, etc.

 

See also:

DeleteItems;

DeleteSection.