2 instantiations of TextPatternRange
UIAutomationClient (2)
System\Windows\Automation\Text\TextRange.cs (2)
71return new TextPatternRange(hTextRange, pattern); 85ranges[i] = new TextPatternRange(hTextRanges[i], pattern);
21 references to TextPatternRange
UIAutomationClient (21)
System\Windows\Automation\Text\TextRange.cs (11)
65internal static TextPatternRange Wrap(SafeTextRangeHandle hTextRange, TextPattern pattern) 74internal static TextPatternRange [] Wrap(SafeTextRangeHandle [] hTextRanges, TextPattern pattern) 79TextPatternRange[] ranges = new TextPatternRange[hTextRanges.Length]; 105public TextPatternRange Clone() 117public bool Compare(TextPatternRange range) 133public int CompareEndpoints(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 172public TextPatternRange FindAttribute(AutomationTextAttribute attribute, object value, bool backward) 211public TextPatternRange FindText(string text, bool backward, bool ignoreCase) 341public void MoveEndpointByRange(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 445void ValidateRangeArgument(TextPatternRange range, string name)
System\Windows\Automation\TextPattern.cs (10)
173public TextPatternRange [] GetSelection() 176return TextPatternRange.Wrap(hTextRanges, this); 186public TextPatternRange [] GetVisibleRanges() 189return TextPatternRange.Wrap(hTextRanges, this); 199public TextPatternRange RangeFromChild(AutomationElement childElement) 203return TextPatternRange.Wrap(hTextRange, this); 215public TextPatternRange RangeFromPoint(Point screenLocation) 225return TextPatternRange.Wrap(hTextRange, this); 242public TextPatternRange DocumentRange 247return TextPatternRange.Wrap(hTextRange, this);