Skip to content

PdfFormattedContent.SplitByBox Method

Overloads

Name Description
SplitByBox(Double,Double) Gets the formatted content that fits in the given box.
SplitByBox(Double,Double,Boolean) Gets the formatted content that fits in the given box.

SplitByBox(Double,Double)

Gets the formatted content that fits in the given box.

C#
public PdfFormattedContent SplitByBox(double width, double height)

Parameters

width Double

The box width.

height Double

The box height.

Remarks

This method modifies the current object, the formatted content that fits the given box is removed from current object and returned as a new object.

SplitByBox(Double,Double,Boolean)

Gets the formatted content that fits in the given box.

C#
public PdfFormattedContent SplitByBox(double width, double height, bool updateParagraphs)

Parameters

width Double

The box width.

height Double

The box height.

updateParagraphs Boolean

If true, the list of paragraphs is also updated to reflect the split.

Remarks

This method modifies the current object, the formatted content that fits the given box is removed from current object and returned as a new object.
If this method is called multiple times but with a different width then the 'updateParagraphs' parameter should be set to true.