Table of Contents

Method IndexOf

Namespace
Gamelogic.Words
Assembly
Gamelogic.Words.dll

IndexOf(string)

Returns the index of the first occurance of the given letter. If the letter is not present in the word, -1 is returned.

public int IndexOf(string letter)

Parameters

letter string

The letter to search for.

Returns

int

The index of the letter, or -1 if it is not in the word.

IndexOf(Word)

Returns the index of the first occurance of the given letter. If the letter is not present in the word, -1 is returned.

public int IndexOf(Word word)

Parameters

word Word

The letter to search for.

Returns

int

The index of the letter, or -1 if it is not in the word.