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

| Improve this Doc View Source

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

| Improve this Doc View Source

Contents

The plain text contents of the TextBlock.

Declaration
public string Contents { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Height

The height of the text block.

Declaration
public float Height { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Left

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

Declaration
public float Left { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Top

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

Declaration
public float Top { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Width

The width of the text block.

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