Function TWPRTFDataBlock.GetPageOfBookmark(BookmarkName:string) : Integer

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataBlock

Parameters

  • BookmarkName:string

Returns

The type of the result value is Integer.

Description

This function checks quickly if the given bookmark exist in the list of bookmarks and returns the page number if it is found. If the bookmark was not found -1 will be returned. Please note that in the BookmarkName all spaces must be replaced by '_' signs. You can use the property to get such a name.