AnalyzeBlocks

This method determines all the TextBlocks of text present in a workdoc that are a minimum XDist apart from each other on X-axis and a minimum of YDist apart from each other on Y-axis.

Increasing the distance results in bigger text blocks. Minimizing the distance increases the number of smaller text blocks.

Note: Search strings comprising multiple words match candidates only if the multiple words candidates reside within the same text block. Use the AnalyzeBlocks method to adjust the text blocks to your requirements.

Syntax

AnalyzeBlocks (XDist as Double, YDist as Double)
Parameter Description
XDist Minimum X distance between two TextBlocks
YDist Minimum Y distance between two TextBlocks

Sample Code

pWorkdoc.AnalyzeBlocks(4,4)