TCustomRichView.IsFromNewLine

<< Click to display table of contents >>

TCustomRichView.IsFromNewLine

Returns "does the ItemNo-th item start a new line"?

function IsFromNewLine(ItemNo: Integer): Boolean;

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.IsFromNewLine.

This method returns True both in cases when this item starts a new paragraph (see IsParaStart) or starts a new line inside the paragraph (it was moved to the new line in editor using  Shift + Enter , or added in the mode SetAddParagraphMode(False)).

 

See also methods:

IsParaStart;

GetItemPara.

See also:

Paragraphs.