Method GetWord
GetWord(string, int, out int, out int)
When implemented by a class, returns word start and end, if there is word at the specified position.
bool GetWord(string s, int pos, out int left, out int right)
Parameters
sstringThe given string.
posintThe index of character within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
Returns
- bool
True if any word found; otherwise false.
GetWord(string, int, out int, out int, Hashtable)
When implemented by a class, returns word start and end, if there is word at the specified position.
bool GetWord(string s, int pos, out int left, out int right, Hashtable delims)
Parameters
sstringThe given string.
posintThe index of character within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
delimsHashtableCollection of delimiters.
Returns
- bool
True if any word found; otherwise false.
GetWord(string, int, out int, out int, char[])
When implemented by a class, returns word start and end, if there is word at the specified position.
bool GetWord(string s, int pos, out int left, out int right, char[] delims)
Parameters
sstringThe given string.
posintThe index of character within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
delimschar[]Collection of delimiters.
Returns
- bool
True if any word found; otherwise false.
GetWord(int, int, out int, out int)
When implemented by a class, returns word start and end, if there is word at the specified position.
bool GetWord(int index, int pos, out int left, out int right)
Parameters
indexintThe index of line in the text.
posintThe index of character in the within the string.
leftintReceives start position of the word.
rightintReceives end position of the word.
Returns
- bool
True if any word found; otherwise false.