Table of Contents

Method GetWord

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.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 string

The given string.

pos int

The index of character within the string.

left int

Receives start position of the word.

right int

Receives 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 string

The given string.

pos int

The index of character within the string.

left int

Receives start position of the word.

right int

Receives end position of the word.

delims Hashtable

Collection 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 string

The given string.

pos int

The index of character within the string.

left int

Receives start position of the word.

right int

Receives 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 int

The index of line in the text.

pos int

The index of character in the within the string.

left int

Receives start position of the word.

right int

Receives end position of the word.

Returns

bool

True if any word found; otherwise false.