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; } }
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; } }