AccessibilityNodeInfo.SetBoundsInParent(Rect) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定節點邊界為 viewParent 的座標。
[Android.Runtime.Register("setBoundsInParent", "(Landroid/graphics/Rect;)V", "GetSetBoundsInParent_Landroid_graphics_Rect_Handler")]
public virtual void SetBoundsInParent(Android.Graphics.Rect? bounds);
[<Android.Runtime.Register("setBoundsInParent", "(Landroid/graphics/Rect;)V", "GetSetBoundsInParent_Landroid_graphics_Rect_Handler")>]
abstract member SetBoundsInParent : Android.Graphics.Rect -> unit
override this.SetBoundsInParent : Android.Graphics.Rect -> unit
參數
- bounds
- Rect
節點邊界。
- 屬性
例外狀況
如果是從無障礙服務(AccessibilityService)打電話來。
備註
設定節點邊界為 viewParent 的座標。
#getParent() 不代表來源的觀點。 它代表 的 View#getParentForAccessibility()結果,回傳最近且為 View#isImportantForAccessibility() 真的祖先。 所以這種方法並不可靠。
<strong>注意:</strong> 不能從 android.accessibilityservice.AccessibilityService. 此類別在交付給無障礙服務前會被設定為不可變。
此會員已被棄用。 無障礙服務不應該在意這些界限。
Java 文件 android.view.accessibility.AccessibilityNodeInfo.setBoundsInParent(android.graphics.Rect)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。