<< Click to display table of contents >>


Occurs when painting a background of paragraph of the ParaNo-th style.

property OnDrawParaBack: TRVDrawParaRectEvent;



  TRVDrawParaRectEvent =

    procedure (Sender: TRVStyle; Canvas: TCanvas;

      ParaNo: Integer; ARect: TRect; 

      var DoDefault: Boolean) of object;

(introduced in version 1.3)

You can use this event to draw your own background and/or border for some or all paragraphs.

Input parameters:

Sender TRVStyle generating the event.

Canvas canvas to paint.

ARect rectangle where to paint.

ParaNo – index in the collection of paragraph styles (ParaStyles).

DoDefault is equal to True.


"Hidden" input parameters:

Sender.RVData: TPersistent, document containing this paragraph. It should be typecasted to TCustomRVFormattedData before using.

Sender.ItemNo: Integer, index of the last item in the paragraph, in Sender.RVData.


Output parameters:

DoDefault – set to False to prevent default drawing.


See also properties:



See also:

RichView Paragraphs.

Demo project:

Demos\*\Assorted\Custom Draw\CustomDraw\