示例#1
0
 internal Result(BadReason reason, SpellingEventArgs e, string originalText)
 {
     this.Reason          = reason;
     this.SelectionStart  = null;
     this.SelectionLength = null;
     this.Word            = "";
     if ((e != null) && (!string.IsNullOrEmpty(e.Word)) && (e.TextIndex >= 0))
     {
         this.Word            = e.Word;
         this.SelectionStart  = e.TextIndex;
         this.SelectionLength = e.Word.Length;
     }
 }
示例#2
0
 internal Result(BadReason reason, SpellingEventArgs e, string originalText)
 {
     this.Reason = reason;
     this.SelectionStart = null;
     this.SelectionLength = null;
     this.Word = "";
     if ((e != null) && (!string.IsNullOrEmpty(e.Word)) && (e.TextIndex >= 0))
     {
         this.Word = e.Word;
         this.SelectionStart = e.TextIndex;
         this.SelectionLength = e.Word.Length;
     }
 }