28 references to Reverse
System.Windows.Forms (6)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (6)
1866if ((options & RichTextBoxFinds.Reverse) != RichTextBoxFinds.Reverse) 1882if ((options & RichTextBoxFinds.Reverse) != RichTextBoxFinds.Reverse) 1906if ((options & RichTextBoxFinds.Reverse) != RichTextBoxFinds.Reverse)
System.Windows.Forms.Tests (22)
System\Windows\Forms\RichTextBoxTests.cs (22)
7969yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.Reverse, -1 }; 7970yield return new object[] { string.Empty, "abc", RichTextBoxFinds.Reverse, -1 }; 7974yield return new object[] { "abc", "a", RichTextBoxFinds.Reverse, 0 }; 7986yield return new object[] { "aa", "a", RichTextBoxFinds.Reverse, 1 }; 7987yield return new object[] { "aa", string.Empty, RichTextBoxFinds.Reverse, -1 }; 8020yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.Reverse, -1 }; 8021yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.Reverse, -1 }; 8025yield return new object[] { "abc", "a", 0, RichTextBoxFinds.Reverse, 0 }; 8037yield return new object[] { "aa", "a", 0, RichTextBoxFinds.Reverse, 1 }; 8038yield return new object[] { "aa", string.Empty, 0, RichTextBoxFinds.Reverse, -1 }; 8049yield return new object[] { "abc", "a", 1, RichTextBoxFinds.Reverse, -1 }; 8050yield return new object[] { "abc", "a", 2, RichTextBoxFinds.Reverse, -1 }; 8051yield return new object[] { "abc", "c", 2, RichTextBoxFinds.Reverse, 2 }; 8080yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.Reverse, -1 }; 8081yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.Reverse, -1 }; 8085yield return new object[] { "abc", "a", 0, end, RichTextBoxFinds.Reverse, 0 }; 8097yield return new object[] { "aa", "a", 0, end, RichTextBoxFinds.Reverse, 1 }; 8098yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.Reverse, -1 }; 8118yield return new object[] { "abc", "a", 1, 3, RichTextBoxFinds.Reverse, -1 }; 8119yield return new object[] { "abc", "a", 2, 3, RichTextBoxFinds.Reverse, -1 }; 8120yield return new object[] { "abc", "c", 2, 3, RichTextBoxFinds.Reverse, 2 }; 8545Assert.Throws<ArgumentException>(() => control.Find("s", 1, 0, RichTextBoxFinds.Reverse));