forked from gitextensions/gitextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpellingEventArgs.cs
50 lines (44 loc) · 960 Bytes
/
SpellingEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
namespace NetSpell.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
}