語言

AccessibilityNodeInfo.GetBoundsInParent(Rect) 方法

定義

取得 viewParent 座標中的節點邊界。

[Android.Runtime.Register("getBoundsInParent", "(Landroid/graphics/Rect;)V", "GetGetBoundsInParent_Landroid_graphics_Rect_Handler")]
public virtual void GetBoundsInParent(Android.Graphics.Rect? outBounds);
[<Android.Runtime.Register("getBoundsInParent", "(Landroid/graphics/Rect;)V", "GetGetBoundsInParent_Landroid_graphics_Rect_Handler")>]
abstract member GetBoundsInParent : Android.Graphics.Rect -> unit
override this.GetBoundsInParent : Android.Graphics.Rect -> unit

參數

outBounds
Rect

輸出節點是邊界的。

屬性

備註

取得 viewParent 座標中的節點邊界。 #getParent() 不代表來源的觀點。 它代表 的 View#getParentForAccessibility()結果,回傳最近且為 View#isImportantForAccessibility() 真的祖先。 所以這種方法並不可靠。

啟用放大後,父節點的邊界也會依放大比例放大。 例如,當放大倍率為 2 時,原始界限 Rect(10, 10, 100, 100) 會回傳 Rect(20, 20, 200, 200)。

此會員已被棄用。 請改用 #getBoundsInScreen(Rect)。

Java 文件 android.view.accessibility.AccessibilityNodeInfo.getBoundsInParent(android.graphics.Rect)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於