TCustomRichView.GetItemPara

<< Click to display table of contents >>

TCustomRichView.GetItemPara

Returns the index of paragraph style for paragraph containing the ItemNo-th item.

function GetItemPara(ItemNo: Integer): Integer;

(Introduced in version 1.3)

Parameter:

ItemNo index of the item. Items are indexed from 0 to ItemCount-1, GetItemStyle returns type of item. Items of subdocuments (table cells) are not included in the items range of the main document; for items in cells, use Cell.GetRVData.GetItemPara.

Return value:

The returned value is an index in the collection of Style.ParaStyles. The method never returns -1, even if this item is not the first paragraph item. The method returns the same value for all items in the same paragraph.

 

See also:

IsParaStart;

IsFromNewLine.

See also:

Paragraphs.