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)
7969yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.None, -1 }; 7970yield return new object[] { string.Empty, "abc", RichTextBoxFinds.None, -1 }; 7974yield return new object[] { "abc", string.Empty, RichTextBoxFinds.None, -1 }; 7975yield return new object[] { "abc", "a", RichTextBoxFinds.None, 0 }; 7977yield return new object[] { "abc", "ab", RichTextBoxFinds.None, 0 }; 7978yield return new object[] { "abc", "abc", RichTextBoxFinds.None, 0 }; 7979yield return new object[] { "abc", "abcd", RichTextBoxFinds.None, -1 }; 7980yield return new object[] { "abc", "b", RichTextBoxFinds.None, 1 }; 7981yield return new object[] { "abc", "d", RichTextBoxFinds.None, -1 }; 7983yield return new object[] { "abc", "ABC", RichTextBoxFinds.None, 0 }; 7987yield return new object[] { "aa", "a", RichTextBoxFinds.None, 0 }; 7990yield return new object[] { "abc def", "ef", RichTextBoxFinds.None, 5 }; 7991yield return new object[] { "abc def", "def", RichTextBoxFinds.None, 4 }; 7992yield return new object[] { "abc def", " ", RichTextBoxFinds.None, 3 }; 7997yield return new object[] { "ab\u0640cd", "abcd", RichTextBoxFinds.None, 0 }; 7998yield return new object[] { "ab\u0640cd", "\u0640", RichTextBoxFinds.None, 2 }; 7999yield return new object[] { "ab\u0640cd", "bc", RichTextBoxFinds.None, 1 }; 8020yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.None, -1 }; 8021yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.None, -1 }; 8025yield return new object[] { "abc", string.Empty, 0, RichTextBoxFinds.None, -1 }; 8026yield return new object[] { "abc", "a", 0, RichTextBoxFinds.None, 0 }; 8028yield return new object[] { "abc", "ab", 0, RichTextBoxFinds.None, 0 }; 8029yield return new object[] { "abc", "abc", 0, RichTextBoxFinds.None, 0 }; 8030yield return new object[] { "abc", "abcd", 0, RichTextBoxFinds.None, -1 }; 8031yield return new object[] { "abc", "b", 0, RichTextBoxFinds.None, 1 }; 8032yield return new object[] { "abc", "d", 0, RichTextBoxFinds.None, -1 }; 8034yield return new object[] { "abc", "ABC", 0, RichTextBoxFinds.None, 0 }; 8038yield return new object[] { "aa", "a", 0, RichTextBoxFinds.None, 0 }; 8041yield return new object[] { "abc def", "ef", 0, RichTextBoxFinds.None, 5 }; 8042yield return new object[] { "abc def", "def", 0, RichTextBoxFinds.None, 4 }; 8043yield return new object[] { "abc def", " ", 0, RichTextBoxFinds.None, 3 }; 8048yield return new object[] { "abc", "a", 1, RichTextBoxFinds.None, -1 }; 8049yield return new object[] { "abc", "a", 2, RichTextBoxFinds.None, -1 }; 8050yield return new object[] { "abc", "c", 2, RichTextBoxFinds.None, 2 }; 8055yield return new object[] { "ab\u0640cd", "abcd", 0, RichTextBoxFinds.None, 0 }; 8056yield return new object[] { "ab\u0640cd", "\u0640", 0, RichTextBoxFinds.None, 2 }; 8057yield return new object[] { "ab\u0640cd", "bc", 0, RichTextBoxFinds.None, 1 }; 8080yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.None, -1 }; 8081yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.None, -1 }; 8085yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.None, -1 }; 8086yield return new object[] { "abc", "a", 0, end, RichTextBoxFinds.None, 0 }; 8088yield return new object[] { "abc", "ab", 0, end, RichTextBoxFinds.None, 0 }; 8089yield return new object[] { "abc", "abc", 0, end, RichTextBoxFinds.None, 0 }; 8090yield return new object[] { "abc", "abcd", 0, end, RichTextBoxFinds.None, -1 }; 8091yield return new object[] { "abc", "b", 0, end, RichTextBoxFinds.None, 1 }; 8092yield return new object[] { "abc", "d", 0, end, RichTextBoxFinds.None, -1 }; 8094yield return new object[] { "abc", "ABC", 0, end, RichTextBoxFinds.None, 0 }; 8098yield return new object[] { "aa", "a", 0, end, RichTextBoxFinds.None, 0 }; 8101yield return new object[] { "abc def", "ef", 0, end, RichTextBoxFinds.None, 5 }; 8102yield return new object[] { "abc def", "def", 0, end, RichTextBoxFinds.None, 4 }; 8103yield return new object[] { "abc def", " ", 0, end, RichTextBoxFinds.None, 3 }; 8108yield return new object[] { "ab\u0640cd", "abcd", 0, end, RichTextBoxFinds.None, 0 }; 8109yield return new object[] { "ab\u0640cd", "\u0640", 0, end, RichTextBoxFinds.None, 2 }; 8110yield return new object[] { "ab\u0640cd", "bc", 0, end, RichTextBoxFinds.None, 1 }; 8117yield return new object[] { "abc", "a", 1, 3, RichTextBoxFinds.None, -1 }; 8118yield return new object[] { "abc", "a", 2, 3, RichTextBoxFinds.None, -1 }; 8119yield return new object[] { "abc", "c", 2, 3, RichTextBoxFinds.None, 2 }; 8124yield return new object[] { "abc", "c", 0, 5, RichTextBoxFinds.None, 2 }; 8125yield return new object[] { "abc", "c", 0, 2, RichTextBoxFinds.None, -1 }; 8434Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8435Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8436Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8437Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, RichTextBoxFinds.None)); 8438Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8439Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8440Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, 0, RichTextBoxFinds.None)); 8441Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8452Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None)); 8453Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None)); 8454Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None)); 8455Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, RichTextBoxFinds.None)); 8456Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None)); 8457Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None)); 8458Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, 0, RichTextBoxFinds.None)); 8459Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None)); 8546Assert.Throws<ArgumentException>(() => control.Find("s", 1, 0, RichTextBoxFinds.None));