rvico TRichView Reference | TRichView

TCustomRichView.AddBreak

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)

Parameters:

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:

Format;

FormatTail.

See also methods of TRichViewEdit:

InsertBreak.

See also:

Item types;

Other methods for appending items;

"Tags".


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