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)
7971yield return new object[] { string.Empty, string.Empty, RichTextBoxFinds.Reverse, -1 }; 7972yield return new object[] { string.Empty, "abc", RichTextBoxFinds.Reverse, -1 }; 7976yield return new object[] { "abc", "a", RichTextBoxFinds.Reverse, 0 }; 7988yield return new object[] { "aa", "a", RichTextBoxFinds.Reverse, 1 }; 7989yield return new object[] { "aa", string.Empty, RichTextBoxFinds.Reverse, -1 }; 8022yield return new object[] { string.Empty, string.Empty, 0, RichTextBoxFinds.Reverse, -1 }; 8023yield return new object[] { string.Empty, "abc", 0, RichTextBoxFinds.Reverse, -1 }; 8027yield return new object[] { "abc", "a", 0, RichTextBoxFinds.Reverse, 0 }; 8039yield return new object[] { "aa", "a", 0, RichTextBoxFinds.Reverse, 1 }; 8040yield return new object[] { "aa", string.Empty, 0, RichTextBoxFinds.Reverse, -1 }; 8051yield return new object[] { "abc", "a", 1, RichTextBoxFinds.Reverse, -1 }; 8052yield return new object[] { "abc", "a", 2, RichTextBoxFinds.Reverse, -1 }; 8053yield return new object[] { "abc", "c", 2, RichTextBoxFinds.Reverse, 2 }; 8082yield return new object[] { string.Empty, string.Empty, 0, end, RichTextBoxFinds.Reverse, -1 }; 8083yield return new object[] { string.Empty, "abc", 0, end, RichTextBoxFinds.Reverse, -1 }; 8087yield return new object[] { "abc", "a", 0, end, RichTextBoxFinds.Reverse, 0 }; 8099yield return new object[] { "aa", "a", 0, end, RichTextBoxFinds.Reverse, 1 }; 8100yield return new object[] { "abc", string.Empty, 0, end, RichTextBoxFinds.Reverse, -1 }; 8120yield return new object[] { "abc", "a", 1, 3, RichTextBoxFinds.Reverse, -1 }; 8121yield return new object[] { "abc", "a", 2, 3, RichTextBoxFinds.Reverse, -1 }; 8122yield return new object[] { "abc", "c", 2, 3, RichTextBoxFinds.Reverse, 2 }; 8547Assert.Throws<ArgumentException>(() => control.Find("s", 1, 0, RichTextBoxFinds.Reverse));