PdfLayoutNode Class

A node of the layout of a page (PdfPage.ExtractLayout): a heading, a paragraph, a list, a table, a figure, a header or a footer, and its parts.

public sealed class PdfLayoutNode

Properties

NameDescription
BoundsGets the box of the node, in the default user space of the page.
ChildrenGets the parts of the node: the items of a list, the cells of a table.
ColumnGets the zero-based column of a table cell, from the left; -1 for the other nodes.
ImageGets the image of a figure, or null for the other nodes.
KindGets what the node is.
LevelGets the level of a heading, from 1 for the largest font; 0 for the other nodes.
RowGets the zero-based row of a table cell, from the top; -1 for the other nodes.
TextGets the text of the node, its lines separated by line feeds; empty for a figure.

Gets the box of the node, in the default user space of the page.

public PdfRectangle Bounds { get; }

Property value

PdfRectangle

Gets the parts of the node: the items of a list, the cells of a table.

public IReadOnlyList<PdfLayoutNode> Children { get; }

Gets the zero-based column of a table cell, from the left; -1 for the other nodes.

public int Column { get; init; }

Property value

int

Gets the image of a figure, or null for the other nodes.

public PdfImageOccurrence? Image { get; init; }

Property value

PdfImageOccurrence?

Gets what the node is.

public PdfLayoutNodeKind Kind { get; }

Property value

PdfLayoutNodeKind

Gets the level of a heading, from 1 for the largest font; 0 for the other nodes.

public int Level { get; init; }

Property value

int

Gets the zero-based row of a table cell, from the top; -1 for the other nodes.

public int Row { get; init; }

Property value

int

Gets the text of the node, its lines separated by line feeds; empty for a figure.

public string Text { get; }

Property value

string

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.