rvico TRichView Reference | TRichView


Top  Previous  Next

Adds a break (a horizontal line) to the end of document.

procedure AddBreak(Width: TRVStyleLength = 0;
  Style: TRVBreakStyle = rvbsLine; Color: TColor = clNone;
  const Tag: TRVTag = RVEMPTYTAG);

(changed in version 18)


Width – line width (or rectangle height). This value is measured in Style.Units. If Width = 0, the new item has 1 pixel width (converted to Style.Units)

Style – break type;

Color – color of line. If it is equal to clNone, the break color is Style.TextStyles[0].Color.

Tagtag of this break.

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

Methods type: viewerstyle viewer-style.

See also methods:



See also methods of TRichViewEdit:


See also:

Item types;

Other methods for appending items;


Related deprecated methods:

procedure AddBreakExTag(Width: TRVStyleLength; Style: TRVBreakStyle;

  Color: TColor; const Tag: TRVTag);

procedure AddBreakEx(Width: TRVStyleLength; Style: TRVBreakStyle;

  Color: TColor);

procedure AddBreakTag(const Tag: TRVTag);

These methods provide subset of functionality of AddBreak.

TRichView © trichview.com