ComOfficeby KDAN API Reference for Windows and Linux
Table of Contents

Class PageText

Namespace
ComOfficeKit
Assembly
ComOfficeKit.dll

The text a page draws and where it draws it (GetPageText(int)): what an application lays over the page's image so its user can select, copy and search what the page shows, or reads to find where a word is. It holds what the page draws as text, as RenderPage(int, double) draws it: headers and footers, footnotes and their marks, a watermark, a chart's labels, a turned shape's text. Text a clip hides, such as a cell's text past the cell, is not in it.

public sealed class PageText
Inheritance
PageText
Inherited Members

Remarks

Lengths are in points (1/72 inch) with the origin at the page's top-left corner and y growing down: a point is dpi / 72 pixels of the image RenderPage(int, double) draws at dpi. The text holds its own copy of everything: it outlives its document.

Properties

Height

The page's height in points.

public double Height { get; }

Property Value

double

Lines

The lines, in the order the page draws them: a Word page's text in reading order, then what lies over it; a slide's shapes from back to front; a sheet's cells row by row, then its charts and drawings.

public IReadOnlyList<PageTextLine> Lines { get; }

Property Value

IReadOnlyList<PageTextLine>

Text

Every line's Text, one to a line, separated by line feeds.

public string Text { get; }

Property Value

string

Width

The page's width in points.

public double Width { get; }

Property Value

double