| 
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
Syntax
 
 
public TextSelection[] FindAllString(
	string given,
	bool caseSensitive,
	bool wholeWord
)
 
Public Function FindAllString ( 
	given As String,
	caseSensitive As Boolean,
	wholeWord As Boolean
) As TextSelection()
 
public:
array<TextSelection^>^ FindAllString(
	String^ given, 
	bool caseSensitive, 
	bool wholeWord
)
 
member FindAllString : 
given : string * 
caseSensitive : bool * 
wholeWord : bool -> TextSelection[] 
 
 
 
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
See Also