20 references to NoHighlight
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1797bool selectWord = (options & RichTextBoxFinds.NoHighlight) != RichTextBoxFinds.NoHighlight;
System.Windows.Forms.Tests (18)
System\Windows\Forms\RichTextBoxTests.cs (18)
7998yield return new object[] { "ab\u0640cd", "abcd", RichTextBoxFinds.NoHighlight, 0 }; 7999yield return new object[] { "ab\u0640cd", "\u0640", RichTextBoxFinds.NoHighlight, 2 }; 8000yield return new object[] { "ab\u0640cd", "bc", RichTextBoxFinds.NoHighlight, 1 }; 8001yield return new object[] { "abcd", "abcd", RichTextBoxFinds.NoHighlight, 0 }; 8056yield return new object[] { "ab\u0640cd", "abcd", 0, RichTextBoxFinds.NoHighlight, 0 }; 8057yield return new object[] { "ab\u0640cd", "\u0640", 0, RichTextBoxFinds.NoHighlight, 2 }; 8058yield return new object[] { "ab\u0640cd", "bc", 0, RichTextBoxFinds.NoHighlight, 1 }; 8059yield return new object[] { "abcd", "abcd", 0, RichTextBoxFinds.NoHighlight, 0 }; 8109yield return new object[] { "ab\u0640cd", "abcd", 0, end, RichTextBoxFinds.NoHighlight, 0 }; 8110yield return new object[] { "ab\u0640cd", "\u0640", 0, end, RichTextBoxFinds.NoHighlight, 2 }; 8111yield return new object[] { "ab\u0640cd", "bc", 0, end, RichTextBoxFinds.NoHighlight, 1 }; 8112yield return new object[] { "abcd", "abcd", 0, end, RichTextBoxFinds.NoHighlight, 0 }; 8497Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight)); 8498Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, 0, RichTextBoxFinds.NoHighlight)); 8512Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, RichTextBoxFinds.NoHighlight)); 8513Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find("s", start, 0, RichTextBoxFinds.NoHighlight)); 8522Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find("s", 0, -2, RichTextBoxFinds.NoHighlight)); 8533Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find("s", 0, -2, RichTextBoxFinds.NoHighlight));