18 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 (16)
System\Windows\Forms\RichTextBoxTests.cs (16)
8356Assert.Equal(expected, control.Find(characterSet, start, end)); 8422Assert.Equal(expected, control.Find(characterSet, start, end)); 8470Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8471Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8472Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1, 0)); 8473Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2)); 8487Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0)); 8488Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0)); 8489Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2, 0)); 8490Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2)); 8502Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find(['s'], start, 0)); 8517Assert.Throws<ArgumentOutOfRangeException>("start", () => control.Find(['s'], start, 0)); 8525Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 0, -2)); 8536Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 0, -2)); 8548Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 1, 0)); 8549Assert.Throws<ArgumentOutOfRangeException>("end", () => control.Find(['s'], 1, 0));