Function TWPRTFDataBlock.GetPosition(Par:TParagraph; posinpar:Integer) : Integer

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataBlock

Parameters

Returns

The type of the result value is Integer.

Description

This function counts the characters from the begining of the text until the provided paragraph and then adds the povided position. If the paragraph was not found the Result value = -1. Note: all paragraphs care counted as CharCount + 1 for the Carriage Return. Please note that tables and table rows also add 1 to the sum - although they are not visible