28 references to Reverse
System.Windows.Forms (6)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (6)
1866
if ((options & RichTextBoxFinds.
Reverse
) != RichTextBoxFinds.
Reverse
)
1882
if ((options & RichTextBoxFinds.
Reverse
) != RichTextBoxFinds.
Reverse
)
1906
if ((options & RichTextBoxFinds.
Reverse
) != RichTextBoxFinds.
Reverse
)
System.Windows.Forms.Tests (22)
System\Windows\Forms\RichTextBoxTests.cs (22)
7971
yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.
Reverse
, -1 };
7972
yield return new object[] { string.Empty, "abc", RichTextBoxFinds.
Reverse
, -1 };
7976
yield return new object[] { "abc", "a", RichTextBoxFinds.
Reverse
, 0 };
7988
yield return new object[] { "aa", "a", RichTextBoxFinds.
Reverse
, 1 };
7989
yield return new object[] { "aa", string.Empty, RichTextBoxFinds.
Reverse
, -1 };
8022
yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.
Reverse
, -1 };
8023
yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.
Reverse
, -1 };
8027
yield return new object[] { "abc", "a", 0, RichTextBoxFinds.
Reverse
, 0 };
8039
yield return new object[] { "aa", "a", 0, RichTextBoxFinds.
Reverse
, 1 };
8040
yield return new object[] { "aa", string.Empty, 0, RichTextBoxFinds.
Reverse
, -1 };
8051
yield return new object[] { "abc", "a", 1, RichTextBoxFinds.
Reverse
, -1 };
8052
yield return new object[] { "abc", "a", 2, RichTextBoxFinds.
Reverse
, -1 };
8053
yield return new object[] { "abc", "c", 2, RichTextBoxFinds.
Reverse
, 2 };
8082
yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.
Reverse
, -1 };
8083
yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.
Reverse
, -1 };
8087
yield return new object[] { "abc", "a", 0, end, RichTextBoxFinds.
Reverse
, 0 };
8099
yield return new object[] { "aa", "a", 0, end, RichTextBoxFinds.
Reverse
, 1 };
8100
yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.
Reverse
, -1 };
8120
yield return new object[] { "abc", "a", 1, 3, RichTextBoxFinds.
Reverse
, -1 };
8121
yield return new object[] { "abc", "a", 2, 3, RichTextBoxFinds.
Reverse
, -1 };
8122
yield return new object[] { "abc", "c", 2, 3, RichTextBoxFinds.
Reverse
, 2 };
8547
Assert.Throws<ArgumentException>(() => control.Find("s", 1, 0, RichTextBoxFinds.
Reverse
));