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