示例#1
0
//        internal UiaTextPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern)
//        {
//            this._hPattern = hPattern;
//            this._element = el;
//        }
        public virtual classic.Text.TextPatternRange[] GetSelection()
        {
            // SafeTextRangeHandle[] hTextRanges = UiaCoreApi.TextPattern_GetSelection(this._hPattern);
            // return TextPatternRange.Wrap(hTextRanges, this);
            return(_textPattern.GetSelection());
        }