|
using System;
namespace SpellChecker
{
/// <summary>
/// Class sent to the event handler when the DoubleWord or
/// MisspelledWord event occurs
/// </summary>
public class SpellingEventArgs : EventArgs
{
private int _TextIndex;
private string _Word;
private int _WordIndex;
/// <summary>
/// Constructor used to pass in properties
/// </summary>
public SpellingEventArgs(string word, int wordIndex, int textIndex)
{
_Word = word;
_WordIndex = wordIndex;
_TextIndex = textIndex;
}
/// <summary>
/// Text index of the WordEvent
/// </summary>
public int TextIndex
{
get {return _TextIndex;}
}
/// <summary>
/// Word that caused the WordEvent
/// </summary>
public string Word
{
get {return _Word;}
}
/// <summary>
/// Word index of the WordEvent
/// </summary>
public int WordIndex
{
get {return _WordIndex;}
}
} // Class SpellingEventArgs
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.