TCustomRichView.SetItemExtraIntProperty, SetItemExtraIntPropertyEx

<< Click to display table of contents >>

TCustomRichView.SetItemExtraIntProperty, SetItemExtraIntPropertyEx

The methods change a value of the specified integer property of the ItemNo-th item.

function SetItemExtraIntProperty(ItemNo: Integer;

  Prop: TRVExtraItemProperty; Value: Integer): Boolean;

function SetItemExtraIntProperty(ItemNo, Prop,

  Value: Integer): Boolean;

(introduced in versions 1.7 and 15)

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

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.SetItemExtraIntProperty[Ex]

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

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

 

Methods type: viewerstyle viewer-style. Reformatting or repainting may be needed, depending on the changed property.

 

Return value: True, if this item has this property. False, if not.

 

See also

GetItemExtraIntProperty[Ex];

SetItemExtraStrProperty;

Format.

See also methods of TRichViewEdit

SetItemExtraIntProperty[Ex]Ed;

SetCurrentItemExtraIntProperty[Ex].