Click or drag to resize

PdfTextSubtext(Int32, Int32) Method

Retrieves a subtext from this instance. The subtext starts at a specified character position and has a specified length.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.7.1
Syntax
public PdfText Subtext(
	int startIndex,
	int length
)

Parameters

startIndex  Int32
The zero-based starting character position of a subtext in this instance.
length  Int32
The number of characters in the subtext.

Return Value

PdfText
A PdfText that is equivalent to the subtext of length that begins at startIndex in this instance.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionstartIndex plus length indicates a position not within this instance or startIndex or length is less than zero.
See Also