2 instantiations of TextPatternRange
UIAutomationClient (2)
System\Windows\Automation\Text\TextRange.cs (2)
70return new TextPatternRange(hTextRange, pattern); 84ranges[i] = new TextPatternRange(hTextRanges[i], pattern);
21 references to TextPatternRange
UIAutomationClient (21)
System\Windows\Automation\Text\TextRange.cs (11)
64internal static TextPatternRange Wrap(SafeTextRangeHandle hTextRange, TextPattern pattern) 73internal static TextPatternRange [] Wrap(SafeTextRangeHandle [] hTextRanges, TextPattern pattern) 78TextPatternRange[] ranges = new TextPatternRange[hTextRanges.Length]; 104public TextPatternRange Clone() 116public bool Compare(TextPatternRange range) 132public int CompareEndpoints(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 171public TextPatternRange FindAttribute(AutomationTextAttribute attribute, object value, bool backward) 210public TextPatternRange FindText(string text, bool backward, bool ignoreCase) 340public void MoveEndpointByRange(TextPatternRangeEndpoint endpoint, TextPatternRange targetRange, TextPatternRangeEndpoint targetEndpoint) 444private void ValidateRangeArgument(TextPatternRange range, string name)
System\Windows\Automation\TextPattern.cs (10)
172public TextPatternRange [] GetSelection() 175return TextPatternRange.Wrap(hTextRanges, this); 185public TextPatternRange [] GetVisibleRanges() 188return TextPatternRange.Wrap(hTextRanges, this); 198public TextPatternRange RangeFromChild(AutomationElement childElement) 202return TextPatternRange.Wrap(hTextRange, this); 214public TextPatternRange RangeFromPoint(Point screenLocation) 224return TextPatternRange.Wrap(hTextRange, this); 241public TextPatternRange DocumentRange 246return TextPatternRange.Wrap(hTextRange, this);