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