ActiveParagraph

<< Click to Display Table of Contents >>

Navigation:  Programming > Move cursor / select text >

ActiveParagraph

The WPRichText has several properties which reference the current paragraph, table, cell, position in the paragraph etc.

 

This is the position of the cursor in the current paragraph: (writeable)

property ActivePosInPar: Integer;

 

This is the start offset of the current line in the current paragraph: (readonly)

property ActiveLineStart: Integer;

 

This is the length of the current line in the current paragraph (readonly)

property ActiveLineLen: Integer;

 

This is the current paragraph. It can be read and assigned.

property ActiveParagraph: TParagraph;

 

This property selects which text is currently changed.

property ActiveText: TWPRTFDataBlock;

 

This is the text which is currently displayed. If it is the body layer header/footer and other layers can also be displayed.

property DisplayedText: TWPRTFDataBlock;

 

 

This is the first paragraph of the displayed text which is usually the body text. Assigning a paragraph here clears the current layer and attaches a new list of paragraph.

property FirstPar: TParagraph;

 

This is the last paragraph (in the first level) of the displayed text. (readonly)

property LastPar: TParagraph;