19 references to Find
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
1766
return
Find
(str, 0, 0, RichTextBoxFinds.None);
1774
return
Find
(str, 0, 0, options);
1782
return
Find
(str, start, -1, options);
System.Windows.Forms.Tests (16)
System\Windows\Forms\RichTextBoxTests.cs (16)
8136
Assert.Equal(expected, control.
Find
(str, start, end, options));
8225
Assert.Equal(expected, control.
Find
(str, start, end, options));
8438
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, 0, RichTextBoxFinds.None));
8439
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, -1, 0, RichTextBoxFinds.None));
8440
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 1, 0, RichTextBoxFinds.None));
8441
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, -2, RichTextBoxFinds.None));
8456
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, 0, RichTextBoxFinds.None));
8457
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, -1, 0, RichTextBoxFinds.None));
8458
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 2, 0, RichTextBoxFinds.None));
8459
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, -2, RichTextBoxFinds.None));
8500
Assert.Throws<ArgumentOutOfRangeException>("start", () => control.
Find
("s", start, 0, RichTextBoxFinds.NoHighlight));
8515
Assert.Throws<ArgumentOutOfRangeException>("start", () => control.
Find
("s", start, 0, RichTextBoxFinds.NoHighlight));
8524
Assert.Throws<ArgumentOutOfRangeException>("end", () => control.
Find
("s", 0, -2, RichTextBoxFinds.NoHighlight));
8535
Assert.Throws<ArgumentOutOfRangeException>("end", () => control.
Find
("s", 0, -2, RichTextBoxFinds.NoHighlight));
8546
Assert.Throws<ArgumentException>(() => control.
Find
("s", 1, 0, RichTextBoxFinds.None));
8547
Assert.Throws<ArgumentException>(() => control.
Find
("s", 1, 0, RichTextBoxFinds.Reverse));