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() はソースの viewParent を表していません。 代わりに、 が true の最も近い先祖を返す の結果 View#getParentForAccessibility()View#isImportantForAccessibility() 表します。 したがって、この方法は信頼できません。

倍率を有効にすると、親の境界も倍率スケールでスケールアップされます。 たとえば、拡大倍率が 2 の場合、元の境界 Rect(10, 10, 100, 100, 100) の Rect(20, 20, 200, 200) を返します。 <P/>

このメンバーは非推奨とされます。 代わりに、#getBoundsInScreen(Rect) を使用してください。

の Java ドキュメント android.view.accessibility.AccessibilityNodeInfo.getBoundsInParent(android.graphics.Rect)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象