[]
        
(Showing Draft Content)

C1.Document.Utils.FindTextInstances

FindTextInstances Method

FindTextInstances(string, string, int, int, int, bool, bool, bool)

Finds instances of text in a string.

Declaration
public static IList<int> FindTextInstances(string what, string where, int fromIdx, int length, int maxCount, bool forward, bool matchCase, bool word)
Parameters
Type Name Description
string what

The text to search for.

string where

The string to search.

int fromIdx

Index in "where" to start search at.

int length

Length of substring to search in.

int maxCount

Max number of instances to find.

bool forward

Search direction.

bool matchCase

Ignore case.

bool word

Whole word search.

Returns
Type Description
IList<int>

Array of indexes into "where" to the found instances.