Leadtools.Forms.DocumentReaders Namespace > DocumentWord Structure : LastCharacterIndex Property |
public int LastCharacterIndex {get; set;}
'Declaration Public Property LastCharacterIndex As Integer
'Usage Dim instance As DocumentWord Dim value As Integer instance.LastCharacterIndex = value value = instance.LastCharacterIndex
The text of a document page is read by using the DocumentObjectManager.ParsePageText method. The text characters found in the page will be set in the in DocumentPageText.Characters property of the returned DocumentPageText object.
The text words are created from the characters found in the document based on the DocumentCharacter.IsEndOfWord returned by document reader engine. Whenever an "end of word" is found, the last set of characters are grouped together and stored as an item in the DocumentPageText.Words list.
The index of the first and last character of each word found into the DocumentPageText.Characters list are stored in the FirstCharacterIndex and LastCharacterIndex properties.
The overall text string (with no extra properties) can be obtained using the DocumentPageText.BuildText method.
For an example, refer to DocumentPageText.