TCustomRichViewEdit.SetCurrentBreakInfo

<< Click to display table of contents >>

TCustomRichViewEdit.SetCurrentBreakInfo

Changes properties for the item at the position of caret, if this item is a break

procedure SetCurrentBreakInfo(AWidth: TRVStyleLength;

  AStyle: TRVBreakStyle;  AColor: TRVColorconst ATag: TRVTag);

SetCurrentBreakInfo(...) is equivalent to TopLevelEditor.SetBreakInfoEd(TopLevelEditor.CurItemNo, ...).

This method can be used if CurItemStyle returns rvsBreak.

Parameters:

AWidth – line width (or rectangle height). This value is measured in Style.Units.

AStyle – visual style of this break, see TRVBreakStyle for possible values.

AColor – line color. If it is equal to rvclNone, Style.TextStyles[0].Color is used.

ATag tag of the item. You can use value returned by GetCurrentBreakInfo or GetCurrentTag for this item.

 

Instead of this method, you can use SetCurrentItemExtraIntPropertyEx and SetCurrentTag methods.

 

Method type: editstyle editing-style.

Additional item properties are assigned by the methods SetCurrentItemExtraIntProperty and SetCurrentItemExtraStrProperty.

 

See also methods:

GetCurrentBreakInfo;

SetBreakInfoEd.

See also properties:

CurItemNo;

CurItemStyle.

See also:

Modifying RichView items;

Item types;

"Tags".