rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.SetItemExtraIntPropertyEd

Top  Previous  Next

An editing-style method for changing value of the specified additional integer property of the ItemNo-th item..

procedure SetItemExtraIntPropertyEd(ItemNo: Integer;
  Prop: TRVExtraItemProperty; Value: Integer;
  AutoReformat: Boolean);

(introduced in version 1.7)

This method sets new Value of the item property identified by Prop. See TRVExtraItemProperty for the list of available integer properties.

ItemNo – index of the item, from 0 to ItemCount-1. Items of subdocuments (table cells) are not included in the items range of the main document; for items in cells, use Cell.GetRVData.SetItemExtraIntPropertyEd (or use SetCurrentItemExtraIntProperty).

If AutoReformat=True, this method automatically reformats document and calls OnChange.

If AutoReformat=False (this can be useful if you set several properties of item at once), you need to call it between calls of BeginItemModify and EndItemModify, and call Change after.

 

Method type: editstyle editing-style (unlike SetItemExtraIntProperty).

When possible, use SetCurrentItemExtraIntProperty instead of this method.

 

See also methods:

SetItemExtraStrPropertyEd;
SetCurrentItemExtraIntProperty.

See also methods of TCustomRichView:

SetItemExtraIntProperty.


RichView © Sergey Tkachenko