語言

AutomationElement.AutomationElementInformation.BoundingRectangle 屬性

定義

取得完全包圍該元素的矩形座標。

public:
 property System::Windows::Rect BoundingRectangle { System::Windows::Rect get(); };
public System.Windows.Rect BoundingRectangle { get; }
member this.BoundingRectangle : System.Windows.Rect
Public ReadOnly Property BoundingRectangle As Rect

屬性值

包圍矩形的點座標。

備註

回傳的矩形可能包含無法點擊的點。 這種情況可能發生的情況包括使用者介面(UI)項目形狀不規則或可點擊區域,或被其他 UI 元素遮蔽。

適用於

另請參閱