2 instantiations of TextPatternRange
UIAutomationClient (2)
System\Windows\Automation\Text\TextRange.cs (2)
85return new TextPatternRange(hTextRange, pattern); 99ranges[i] = new TextPatternRange(hTextRanges[i], pattern);
21 references to TextPatternRange
UIAutomationClient (21)
System\Windows\Automation\Text\TextRange.cs (11)
79internal static TextPatternRange Wrap(SafeTextRangeHandle hTextRange, TextPattern pattern) 88internal static TextPatternRange [] Wrap(SafeTextRangeHandle [] hTextRanges, TextPattern pattern) 93TextPatternRange[] ranges = new TextPatternRange[hTextRanges.Length]; 119public TextPatternRange Clone() 131public bool Compare(TextPatternRange range) 147public int CompareEndpoints(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 186public TextPatternRange FindAttribute(AutomationTextAttribute attribute, object value, bool backward) 225public TextPatternRange FindText(string text, bool backward, bool ignoreCase) 355public void MoveEndpointByRange(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 459void ValidateRangeArgument(TextPatternRange range, string name)
System\Windows\Automation\TextPattern.cs (10)
184public TextPatternRange [] GetSelection() 187return TextPatternRange.Wrap(hTextRanges, this); 197public TextPatternRange [] GetVisibleRanges() 200return TextPatternRange.Wrap(hTextRanges, this); 210public TextPatternRange RangeFromChild(AutomationElement childElement) 217return TextPatternRange.Wrap(hTextRange, this); 229public TextPatternRange RangeFromPoint(Point screenLocation) 239return TextPatternRange.Wrap(hTextRange, this); 256public TextPatternRange DocumentRange 261return TextPatternRange.Wrap(hTextRange, this);