Table of Contents

Property PageIndex

Namespace
LMKit.Extraction
Assembly
LM-Kit.NET.dll

PageIndex

Gets the zero-based page index where this element was located in the source document, or -1 when the page could not be determined.

public int PageIndex { get; }

Property Value

int

A zero-based page number (0 = first page), or -1 when the source document has no page structure or the element could not be mapped to a page.

Examples

int page = element.PageIndex;
if (page >= 0)
{
    Console.WriteLine($"Element found on page {page + 1}");
}