rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.SetCurrentItemExtraIntProperty, SetCurrentItemExtraIntPropertyEx

Top  Previous  Next

The methods change value of an integer property for the item at the position of caret.

procedure SetCurrentItemExtraIntProperty(Prop: TRVExtraItemProperty;

  Value: Integer; AutoReformat: Boolean);

procedure SetCurrentItemExtraIntPropertyEx(Prop, Value: Integer;

  AutoReformat: Boolean);

(introduced in versions 1.7 and 15)

SetCurrentItemExtraIntProperty[Ex](...) is equivalent to TopLevelEditor.SetItemExtraIntProperty[Ex]Ed(TopLevelEditor.CurItemNo, ...).

These methods set a new Value of the item's property identified by Prop.

In SetCurrentItemExtraIntProperty, Prop's type is TRVExtraItemProperty. See information about this type for the list of properties.

In SetCurrentItemExtraIntPropertyEx, Prop's type is Integer. If Prop can be converted to TRVExtraItemProperty, SetCurrentItemExtraIntPropertyEx works like SetCurrentItemExtraIntProperty. In addition, it supports properties identified by rveipc*** constants

If AutoReformat=True, these methods automatically reformat the document and call OnChange.

If AutoReformat=False (this can be useful if you set several properties of an item at once), call Change and reformat the document after it yourself. A reformatting depends on the property:

some properties do not require reformatting (for example, colors), repainting is enough (call Invalidate);
some properties require a local reformatting (change properties between calls of BeginItemModify and EndItemModify);
some properties require a complete reformatting (for example, "start-from" and "reset" of numbered sequences) (call Reformat).

Method type: editstyle editing-style.

 

See also methods:

GetCurrentItemExtraIntProperty[Ex];
SetItemExtraIntProperty[Ex]Ed;
SetCurrentItemExtraStrProperty;

See also methods of TCustomRichView:

SetItemExtraIntProperty[Ex].


TRichView © trichview.com