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)
8134
Assert.Equal(expected, control.
Find
(str, start, end, options));
8223
Assert.Equal(expected, control.
Find
(str, start, end, options));
8436
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, 0, RichTextBoxFinds.None));
8437
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, -1, 0, RichTextBoxFinds.None));
8438
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 1, 0, RichTextBoxFinds.None));
8439
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, -2, RichTextBoxFinds.None));
8454
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, 0, RichTextBoxFinds.None));
8455
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, -1, 0, RichTextBoxFinds.None));
8456
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 2, 0, RichTextBoxFinds.None));
8457
Assert.Throws<ArgumentNullException>("str", () => control.
Find
(null, 0, -2, RichTextBoxFinds.None));
8498
Assert.Throws<ArgumentOutOfRangeException>("start", () => control.
Find
("s", start, 0, 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));
8544
Assert.Throws<ArgumentException>(() => control.
Find
("s", 1, 0, RichTextBoxFinds.None));
8545
Assert.Throws<ArgumentException>(() => control.
Find
("s", 1, 0, RichTextBoxFinds.Reverse));