PageTextAreaOptions

PageTextAreaOptions class

Provides the options which are used for page text areas extraction.

public sealed class PageTextAreaOptions : PageAreaOptions

Constructors

Name Description
PageTextAreaOptions(bool) Initializes a new instance of the PageTextAreaOptions class with the OCR usage option.
PageTextAreaOptions(string) Initializes a new instance of the PageTextAreaOptions class with the regular expression. Other options are set by default (see remarks for details).
PageTextAreaOptions(bool, OcrOptions) Initializes a new instance of the PageTextAreaOptions class with the ability to set OCR options.
PageTextAreaOptions(string, Rectangle) Initializes a new instance of the PageTextAreaOptions class with the regular expression and rectangular area. Other options are set by default (see remarks for details).
PageTextAreaOptions(string, Rectangle, double) Initializes a new instance of the PageTextAreaOptions class with the regular expression, rectangular area and the size of the ignored border. Other options are set by default (see remarks for details).
PageTextAreaOptions(string, bool, bool, bool, Rectangle) Initializes a new instance of the PageTextAreaOptions class.
PageTextAreaOptions(string, bool, bool, bool, Rectangle, double) Initializes a new instance of the PageTextAreaOptions class with the size of the ignored border.

Properties

Name Description
Expression { get; } Gets the regular expression.
IgnoreFormatting { get; } Gets the value that indicates whether text formatting is ignored.
MatchCase { get; } Gets the value that indicates whether a text case isn’t ignored.
OcrOptions { get; } Gets the additional options for OCR functionality.
Rectangle { get; } Gets the rectangular area that contains page areas.
RectangleTolerance { get; } Gets the size of the border that is ignored when captured by the rectangular area. It’s measured by the fraction of a text item height.
UniteSegments { get; } Gets the value that indicates whether segments are united.
UseOcr { get; } Gets the value that indicates whether OCR functionality is used to extract text areas.

Remarks

An instance of PageTextAreaOptions class is used as parameter in GetTextAreas and GetTextAreas methods. See the usage examples there. Learn more:

See Also