AutomationElement.AutomationElementInformation.BoundingRectangle 屬性

定義

取得完全圍住項目的矩形座標。Gets the coordinates of the rectangle that completely encloses the element.

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

屬性值

Rect

封入矩形的點座標。The point coordinates of the enclosing rectangle.

備註

傳回的矩形可以包含無法點擊的點。The returned rectangle can contain points that are not clickable. 發生這種情況的情況是,當使用者介面 (UI) 專案具有不規則的圖形或可點按的區域,或由其他 UI 元素遮蔽時。Instances where this could happen are when the user interface (UI) item has an irregular shape or clickable region, or it is obscured by other UI elements.

適用於

另請參閱