77 references to None
System.Windows.Forms (1)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1766return Find(str, 0, 0, RichTextBoxFinds.None);
System.Windows.Forms.Tests (76)
System\Windows\Forms\RichTextBoxTests.cs (76)
7967yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.None, -1 }; 7968yield return new object[] { string.Empty, "abc", RichTextBoxFinds.None, -1 }; 7972yield return new object[] { "abc", string.Empty, RichTextBoxFinds.None, -1 }; 7973yield return new object[] { "abc", "a", RichTextBoxFinds.None, 0 }; 7975yield return new object[] { "abc", "ab", RichTextBoxFinds.None, 0 }; 7976yield return new object[] { "abc", "abc", RichTextBoxFinds.None, 0 }; 7977yield return new object[] { "abc", "abcd", RichTextBoxFinds.None, -1 }; 7978yield return new object[] { "abc", "b", RichTextBoxFinds.None, 1 }; 7979yield return new object[] { "abc", "d", RichTextBoxFinds.None, -1 }; 7981yield return new object[] { "abc", "ABC", RichTextBoxFinds.None, 0 }; 7985yield return new object[] { "aa", "a", RichTextBoxFinds.None, 0 }; 7988yield return new object[] { "abc def", "ef", RichTextBoxFinds.None, 5 }; 7989yield return new object[] { "abc def", "def", RichTextBoxFinds.None, 4 }; 7990yield return new object[] { "abc def", " ", RichTextBoxFinds.None, 3 }; 7995yield return new object[] { "ab\u0640cd", "abcd", RichTextBoxFinds.None, 0 }; 7996yield return new object[] { "ab\u0640cd", "\u0640", RichTextBoxFinds.None, 2 }; 7997yield return new object[] { "ab\u0640cd", "bc", RichTextBoxFinds.None, 1 }; 8018yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.None, -1 }; 8019yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.None, -1 }; 8023yield return new object[] { "abc", string.Empty, 0, RichTextBoxFinds.None, -1 }; 8024yield return new object[] { "abc", "a", 0, RichTextBoxFinds.None, 0 }; 8026yield return new object[] { "abc", "ab", 0, RichTextBoxFinds.None, 0 }; 8027yield return new object[] { "abc", "abc", 0, RichTextBoxFinds.None, 0 }; 8028yield return new object[] { "abc", "abcd", 0, RichTextBoxFinds.None, -1 }; 8029yield return new object[] { "abc", "b", 0, RichTextBoxFinds.None, 1 }; 8030yield return new object[] { "abc", "d", 0, RichTextBoxFinds.None, -1 }; 8032yield return new object[] { "abc", "ABC", 0, RichTextBoxFinds.None, 0 }; 8036yield return new object[] { "aa", "a", 0, RichTextBoxFinds.None, 0 }; 8039yield return new object[] { "abc def", "ef", 0, RichTextBoxFinds.None, 5 }; 8040yield return new object[] { "abc def", "def", 0, RichTextBoxFinds.None, 4 }; 8041yield return new object[] { "abc def", " ", 0, RichTextBoxFinds.None, 3 }; 8046yield return new object[] { "abc", "a", 1, RichTextBoxFinds.None, -1 }; 8047yield return new object[] { "abc", "a", 2, RichTextBoxFinds.None, -1 }; 8048yield return new object[] { "abc", "c", 2, RichTextBoxFinds.None, 2 }; 8053yield return new object[] { "ab\u0640cd", "abcd", 0, RichTextBoxFinds.None, 0 }; 8054yield return new object[] { "ab\u0640cd", "\u0640", 0, RichTextBoxFinds.None, 2 }; 8055yield return new object[] { "ab\u0640cd", "bc", 0, RichTextBoxFinds.None, 1 }; 8078yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.None, -1 }; 8079yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.None, -1 }; 8083yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.None, -1 }; 8084yield return new object[] { "abc", "a", 0, end, RichTextBoxFinds.None, 0 }; 8086yield return new object[] { "abc", "ab", 0, end, RichTextBoxFinds.None, 0 }; 8087yield return new object[] { "abc", "abc", 0, end, RichTextBoxFinds.None, 0 }; 8088yield return new object[] { "abc", "abcd", 0, end, RichTextBoxFinds.None, -1 }; 8089yield return new object[] { "abc", "b", 0, end, RichTextBoxFinds.None, 1 }; 8090yield return new object[] { "abc", "d", 0, end, RichTextBoxFinds.None, -1 }; 8092yield return new object[] { "abc", "ABC", 0, end, RichTextBoxFinds.None, 0 }; 8096yield return new object[] { "aa", "a", 0, end, RichTextBoxFinds.None, 0 }; 8099yield return new object[] { "abc def", "ef", 0, end, RichTextBoxFinds.None, 5 }; 8100yield return new object[] { "abc def", "def", 0, end, RichTextBoxFinds.None, 4 }; 8101yield return new object[] { "abc def", " ", 0, end, RichTextBoxFinds.None, 3 }; 8106yield return new object[] { "ab\u0640cd", "abcd", 0, end, RichTextBoxFinds.None, 0 }; 8107yield return new object[] { "ab\u0640cd", "\u0640", 0, end, RichTextBoxFinds.None, 2 }; 8108yield return new object[] { "ab\u0640cd", "bc", 0, end, RichTextBoxFinds.None, 1 }; 8115yield return new object[] { "abc", "a", 1, 3, RichTextBoxFinds.None, -1 }; 8116yield return new object[] { "abc", "a", 2, 3, RichTextBoxFinds.None, -1 }; 8117yield return new object[] { "abc", "c", 2, 3, RichTextBoxFinds.None, 2 }; 8122yield return new object[] { "abc", "c", 0, 5, RichTextBoxFinds.None, 2 }; 8123yield return new object[] { "abc", "c", 0, 2, RichTextBoxFinds.None, -1 }; 8432Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8433Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8434Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8435Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, RichTextBoxFinds.None)); 8436Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8437Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8438Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, 0, RichTextBoxFinds.None)); 8439Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8450Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8451Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8452Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8453Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, RichTextBoxFinds.None)); 8454Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8455Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8456Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, 0, RichTextBoxFinds.None)); 8457Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8544Assert.Throws<ArgumentException>(() => control.Find("s", 1, 0, RichTextBoxFinds.None));