PdfTextBlock Class

A block of the text of a page: lines that blank spaces of the page do not separate, such as a paragraph or a part of a column (see PdfTextLayout.Blocks).

public sealed class PdfTextBlock

Properties

NameDescription
BoundsGets the smallest rectangle that contains the bounds of the lines of the block.
LinesGets the lines of the block.
TextGets the text of the block: the text of its lines separated by line feeds.

Gets the smallest rectangle that contains the bounds of the lines of the block.

public PdfRectangle Bounds { get; }

Property value

PdfRectangle

Gets the lines of the block.

public IReadOnlyList<PdfTextLine> Lines { get; }

Gets the text of the block: the text of its lines separated by line feeds.

public string Text { get; }

Property value

string

Methods

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

ToString()

PdfTextBlock.cs

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.