System.Windows.Automation.TextPattern2.GetCaretRange C# (CSharp) Method

GetCaretRange() public method

public GetCaretRange ( bool &isActive ) : TextPatternRange
isActive bool
return System.Windows.Automation.Text.TextPatternRange
        public TextPatternRange GetCaretRange(out bool isActive)
        {
            try
            {
                int intIsActive;
                TextPatternRange caretRange = TextPatternRange.Wrap(
                    this._pattern.GetCaretRange(out intIsActive), this);
                isActive = (intIsActive != 0);
                return caretRange;
            }
            catch (System.Runtime.InteropServices.COMException e)
            {
                Exception newEx; if (Utility.ConvertException(e, out newEx)) { throw newEx; } else { throw; }
            }
        }
    }