Method GetWord
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
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
s
stringThe given string.
pos
intThe index of character within the string.
left
intReceives start position of the word.
right
intReceives 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
s
stringThe given string.
pos
intThe index of character within the string.
left
intReceives start position of the word.
right
intReceives end position of the word.
delims
HashtableCollection 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
s
stringThe given string.
pos
intThe index of character within the string.
left
intReceives start position of the word.
right
intReceives end position of the word.
delims
char[]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
index
intThe index of line in the text.
pos
intThe index of character in the within the string.
left
intReceives start position of the word.
right
intReceives end position of the word.
Returns
- bool
True if any word found; otherwise false.