AccessibilityNodeInfo.GetBoundsInWindow(Rect) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the node bounds in window coordinates.
[Android.Runtime.Register("getBoundsInWindow", "(Landroid/graphics/Rect;)V", "GetGetBoundsInWindow_Landroid_graphics_Rect_Handler", ApiSince=34)]
public virtual void GetBoundsInWindow (Android.Graphics.Rect outBounds);
[<Android.Runtime.Register("getBoundsInWindow", "(Landroid/graphics/Rect;)V", "GetGetBoundsInWindow_Landroid_graphics_Rect_Handler", ApiSince=34)>]
abstract member GetBoundsInWindow : Android.Graphics.Rect -> unit
override this.GetBoundsInWindow : Android.Graphics.Rect -> unit
Parameters
- outBounds
- Rect
The output node bounds.
- Attributes
Remarks
Gets the node bounds in window coordinates.
When magnification is enabled, the bounds in window are scaled up by magnification scale and the positions are also adjusted according to the offset of magnification viewport. For example, it returns Rect(-180, -180, 0, 0) for original bounds Rect(10, 10, 100, 100), when the magnification scale is 2 and offsets for X and Y are both 200. <p/>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.