Table of Contents

Method GetWord

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

GetWord(string, int, out int, out int)

Returns word start and end, if there is word at the specified position.

public virtual 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

Represents integer variable to receive start position of the word.

right int

Represents integer variable to receive end position of the word.

Returns

bool

True if any word found; otherwise false.

GetWord(string, int, out int, out int, Hashtable)

Returns word start and end, if there is word at the specified position.

public virtual 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[])

Returns word start and end, if there is word at the specified position.

public virtual 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)

Returns word start and end, if there is word at the specified position.

public virtual 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

Represents integer variable to receive start position of the word.

right int

Represents integer variable to receive end position of the word.

Returns

bool

True if any word found; otherwise false.