Table of Contents

Class ParsedRegion

Namespace
LMKit.Document.Parsing
Assembly
LM-Kit.NET.dll

A grounding region of a parsed page: the box a reader points at for one unit of the page's content. Most regions hold one element; a region holds several when the page sets them as one unit that the reading split, such as a label and its value printed on one row, or a short caption over two elements stacked in one block. The regions partition the page's elements: every element belongs to exactly one region, and the page's rendering does not read them. A page grounded hierarchically then lists its grounding units (a list as a whole, a run of lines, a row of fields): each is a region of one layout-only member (RepeatedTextContent) that is not one of the page's elements, carrying the words it covers.

public sealed class ParsedRegion
Inheritance
ParsedRegion
Inherited Members

Properties

Bounds

The box the region occupies, in the page's coordinate frame, top-left origin: the union of the members' bounds, for text extended above and below by half the page's leading, the space its lines take on the page.

Category

The region's role: the member's own category for a region of one element; for a region of several, Title when every member is a title and Text otherwise.

Members

The elements the region holds, one or more, in the page's reading order; each is one of the page's Elements, except the layout-only member of a grounding unit.

Text

The members' text in reading order without heading marks; for a region of one element, that element's text.

Share