rvico TRichView Reference | TRichView

TCustomRichView.AddBreak, AddBreakEx, AddBreakExTag, AddBreakTag

Top  Previous  Next

These methods add break (horizontal line) to the end of document.

procedure AddBreakExTag(Width: Byte; Style: TRVBreakStyle;

  Color: TColor; Tag: Integer);

 

procedure AddBreak;

procedure AddBreakEx(Width: Byte; Style: TRVBreakStyle;

  Color: TColor);

procedure AddBreakTag(Tag:Integer);

AddBreak, AddBreakEx, AddBreakTag provide subsets of functionality of AddBreakExTag method:

AddBreak is equivalent to AddBreakExTag(1, rvbsLine, clNone, 0).
AddBreakEx(...) is equivalent to AddBreakExTag(..., 0).
AddBreakTag(Tag) is equivalent to AddBreakExTag(1, rvbsLine, clNone, Tag).

 

Parameters:

Width – width of line (can be in range from 1 to 10);

Style – break type;

Color – color of line. If it is equal to clNone, the break has the color of the 0th text style.

Tagtag of this break.

For default HTML <hr> appearance, parameters must be: Style=rvbs3d, Width=2.

 

Methods type: viewerstyle viewer-style.

See also methods:

Format;
FormatTail.

See also methods of TRichViewEdit:

InsertBreak.

See also:

Item types;
Other methods for appending items;
"Tags".


RichView © Sergey Tkachenko