Click or drag to resize

Paragraph FindAllString Method

Finds all occurrences of a specified string within the text, with options for case sensitivity and whole word matching.

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public TextSelection[] FindAllString(
	string given,
	bool caseSensitive,
	bool wholeWord
)

Parameters

given
Type: System String
The string to search for.
caseSensitive
Type: System Boolean
Indicates whether the search should be case sensitive.
wholeWord
Type: System Boolean
Indicates whether the search should match whole words only.

Return Value

Type: TextSelection
An array of TextSelection objects representing all occurrences of the specified string.
See Also