rvico TRichView Reference | TRichView

TCustomRichView.IsParaStart

Top  Previous  Next

Returns "is the ItemNo-th item a first paragraph item"?

function IsParaStart(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.IsParaStart.

This method returns False if this item starts a new line inside the paragraph (i.e. it was moved to the new line in editor using  Shift + Enter , or added in the mode SetAddParagraphMode(False)).

 

See also methods:

IsFromNewLine;

GetItemPara.

See also:

Paragraphs;

Example how to move caret to the beginning of paragraph.


TRichView © trichview.com