12 references to Find
System.Windows.Forms (2)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1929return Find(characterSet, 0, -1); 1937return Find(characterSet, start, -1);
System.Windows.Forms.Tests (10)
System\Windows\Forms\RichTextBoxTests.cs (10)
8354Assert.Equal(expected, control.Find(characterSet, start, end)); 8420Assert.Equal(expected, control.Find(characterSet, start, end)); 8468Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8469Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8470Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1, 0)); 8471Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2)); 8485Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8486Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8487Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2, 0)); 8488Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2));