2 instantiations of TextPatternRange
UIAutomationClient (2)
System\Windows\Automation\Text\TextRange.cs (2)
74return new TextPatternRange(hTextRange, pattern); 88ranges[i] = new TextPatternRange(hTextRanges[i], pattern);
21 references to TextPatternRange
UIAutomationClient (21)
System\Windows\Automation\Text\TextRange.cs (11)
68internal static TextPatternRange Wrap(SafeTextRangeHandle hTextRange, TextPattern pattern) 77internal static TextPatternRange [] Wrap(SafeTextRangeHandle [] hTextRanges, TextPattern pattern) 82TextPatternRange[] ranges = new TextPatternRange[hTextRanges.Length]; 108public TextPatternRange Clone() 120public bool Compare(TextPatternRange range) 136public int CompareEndpoints(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 175public TextPatternRange FindAttribute(AutomationTextAttribute attribute, object value, bool backward) 214public TextPatternRange FindText(string text, bool backward, bool ignoreCase) 344public void MoveEndpointByRange(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 448void 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);