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)
7969
yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.
Reverse
, -1 };
7970
yield return new object[] { string.Empty, "abc", RichTextBoxFinds.
Reverse
, -1 };
7974
yield return new object[] { "abc", "a", RichTextBoxFinds.
Reverse
, 0 };
7986
yield return new object[] { "aa", "a", RichTextBoxFinds.
Reverse
, 1 };
7987
yield return new object[] { "aa", string.Empty, RichTextBoxFinds.
Reverse
, -1 };
8020
yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.
Reverse
, -1 };
8021
yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.
Reverse
, -1 };
8025
yield return new object[] { "abc", "a", 0, RichTextBoxFinds.
Reverse
, 0 };
8037
yield return new object[] { "aa", "a", 0, RichTextBoxFinds.
Reverse
, 1 };
8038
yield return new object[] { "aa", string.Empty, 0, RichTextBoxFinds.
Reverse
, -1 };
8049
yield return new object[] { "abc", "a", 1, RichTextBoxFinds.
Reverse
, -1 };
8050
yield return new object[] { "abc", "a", 2, RichTextBoxFinds.
Reverse
, -1 };
8051
yield return new object[] { "abc", "c", 2, RichTextBoxFinds.
Reverse
, 2 };
8080
yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.
Reverse
, -1 };
8081
yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.
Reverse
, -1 };
8085
yield return new object[] { "abc", "a", 0, end, RichTextBoxFinds.
Reverse
, 0 };
8097
yield return new object[] { "aa", "a", 0, end, RichTextBoxFinds.
Reverse
, 1 };
8098
yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.
Reverse
, -1 };
8118
yield return new object[] { "abc", "a", 1, 3, RichTextBoxFinds.
Reverse
, -1 };
8119
yield return new object[] { "abc", "a", 2, 3, RichTextBoxFinds.
Reverse
, -1 };
8120
yield return new object[] { "abc", "c", 2, 3, RichTextBoxFinds.
Reverse
, 2 };
8545
Assert.Throws<ArgumentException>(() => control.Find("s", 1, 0, RichTextBoxFinds.
Reverse
));