|Top Previous Next|
Changes main properties of the item of break (horizontal line) type.
procedure SetBreakInfo(ItemNo: Integer; AWidth: TRVStyleLength;
ItemNo – index of the item. The item must be of break type (rvsBreak), otherwise the method raises ERichViewError exception. Items are indexed from 0 to ItemCount-1, GetItemStyle returns type of item. Items of subdocuments (table cells) are not included in the items range of the main document; for items in cells, use Cell.GetRVData.SetBreakInfo.
AStyle – visual style of this break, see TRVBreakStyle for possible values.
Method type: viewer-style. It's not necessary to reformat document after it, repainting is enough.
RichView2.SetBreakInfo(ItemNo, 1, rvbsLine, clNone, 'Break Tag');
See also methods:
See also properties:
See also methods of RichViewEdit:
TRichView © trichview.com