TCustomRichView.GetItemStyle

<< Click to display table of contents >>

TCustomRichView.GetItemStyle

Returns type (style) of the ItemNo-th item.

function GetItemStyle(ItemNo: Integer): Integer;

Parameters:

ItemNo index of item (from 0 to ItemCount-1). Items are indexed 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.GetItemStyle.

Return value:

If the item is a text item, this function returns zero or positive value: index of text style of this item in the collection of styles (Style.TextStyles).

If the item is not a text item, this function returns type of this item. It is a negative value, see rvs**** constants.

 

See also properties of TRichViewEdit:

CurItemStyle.

See also:

Item types.