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