Accusoft.MicrXpress1.Net Accusoft Pegasus
Delete Results
Send Feedback  
How To > Determine Results > Delete Results

Glossary Item Box

Delete Results

You can delete a specific CharacterResult from a TextLineResult or a specific TextLineResult from the TextBlockResult with the TextBlockResult.DeleteTextLine and TextLineResult.DeleteCharacter methods.

  • Deleting a character from a text line will result in any parsing results being lost. The text line will need to be reparsed to access parsing results.
  • When you delete a character result from a text line result, the index of subsequent character results in the text line result is reduced by 1.
  • When you delete a text line result from a text block result, the index of subsequent text line results in the text block result is reduced by 1.
C# Example Copy Code
...
int textLineIndex = 0;
if (myTextBlockResult.NumberTextLines > textLineIndex)
{
   myTextBlockResult.DeleteTextLine( textLineIndex );
}
...
C# Example Copy Code
...
int characterIndex = 0;
if (myTextLineResult.NumberCharacters < characterIndex)
{
   myTextLineResult.DeleteCharacter( characterIndex );
}
...

 

©2009. Pegasus Imaging Corporation, DBA Accusoft Pegasus. All Rights Reserved.