Interface ISupportsTextPattern exposes four methods and one property (some of them are NOT YET IMPLEMENTED):
$ranges = $element.GetTextSelection();
$ranges = $element.GetVisibleRanges();
$range = $element.RangeFromChild($childElement);
# $range = $element.RangeFromPoint(Point screenLocation);
[System.Windows.Automation.Text.TextPatternRange]$range = $element.DocumentRange
[System.Windows.Automation.SupportedTextSelection]$textSelection = $element.SupportedTextSelection

Last edited Dec 23, 2013 at 12:10 PM by apetrovskiy, version 1

Comments

No comments yet.