Click or drag to resize

PdfTextFind(String, StringComparison) Method

Finds all occurrences of the specified text in this PdfText instance.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.7.1
Syntax
public IEnumerable<PdfText> Find(
	string text,
	StringComparison comparisonType = StringComparison.InvariantCulture
)

Parameters

text  String
The searched text.
comparisonType  StringComparison  (Optional)
One of the enumeration values that specifies the rules for the search.

Return Value

IEnumerablePdfText
All occurrences of the specified text in this PdfText instance.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext is .
See Also