Class TextBlock

Represents text on a page, it's location and dimensions

Inheritance
System.Object
TextBlock
Namespace: PSPDFKit.Pdf
Assembly: PSPDFKit.dll
Syntax
public sealed class TextBlock

Constructors

TextBlock(String, Single, Single, Single, Single)

Constructs a TextBlock object.

Declaration
public TextBlock(string contents, float left, float top, float height, float width)
Parameters
Type Name Description
System.String contents

The text contents of the text block.

System.Single left

The left position of the text block on the horizontal axis.

System.Single top

The top position of the text block on the vertical axis.

System.Single height

The height of the text block.

System.Single width

The width of the text block.

Properties

Contents

The plain text contents of the TextBlock.

Declaration
public string Contents { get; }
Property Value
Type Description
System.String

Height

The height of the text block.

Declaration
public float Height { get; }
Property Value
Type Description
System.Single

Left

The left position of the text block on the horizontal axis.

Declaration
public float Left { get; }
Property Value
Type Description
System.Single

Top

The top position of the text block on the vertical axis.

Declaration
public float Top { get; }
Property Value
Type Description
System.Single

Width

The width of the text block.

Declaration
public float Width { get; }
Property Value
Type Description
System.Single