TCustomRichView.AddBreak

<< Click to display table of contents >>

TCustomRichView.AddBreak

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

procedure AddBreak(Width: TRVStyleLength = 0;
  Style: TRVBreakStyle = rvbsLine; Color: TRVColor = rvclNone;
  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 rvclNone, the break color is Style.TextStyles[0].Color.

Tag tag 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: TRVColorconst Tag: TRVTag);

procedure AddBreakEx(Width: TRVStyleLength; Style: TRVBreakStyle;

  Color: TRVColor);

procedure AddBreakTag(const Tag: TRVTag);

These methods provide subset of functionality of AddBreak.