// Get the bounding rect by consulting the control. public override UiaRect get_BoundingRectangle() { // Bounding rects must be in screen coordinates var screenRect = _control.RectangleToScreen( _control.RectFromValue(_value)); var result = new UiaRect { left = screenRect.Left, top = screenRect.Top, width = screenRect.Width, height = screenRect.Height }; return(result); }
private unsafe static extern string Test_IRawElementProviderFragmentGetBoundingRectangle( [MarshalAs(UnmanagedType.IUnknown)] object pUnk, UiaRect expected);
// Get the bounding rect by consulting the control. public override UiaRect get_BoundingRectangle() { // Bounding rects must be in screen coordinates var screenRect = _control.RectangleToScreen( _control.RectFromValue(_value)); var result = new UiaRect { left = screenRect.Left, top = screenRect.Top, width = screenRect.Width, height = screenRect.Height }; return result; }