AutomationPeer.GetClickablePoint 方法

定義

取得與自動化對等個體關聯之項目上的 Point,該對等個體回應滑鼠點選動作。Gets a Point on the element that is associated with the automation peer that responds to a mouse click.

public:
 System::Windows::Point GetClickablePoint();
public System.Windows.Point GetClickablePoint ();
member this.GetClickablePoint : unit -> System.Windows.Point
Public Function GetClickablePoint () As Point

傳回

Point

項目的可點選區域中的點。A point in the clickable area of the element.

例外狀況

目前正在公開呼叫此方法。A public call to this method is currently in progress.

備註

例如,如果專案代表,則可點按的 Button 點是的可見工作區中的任何一點,會 Button 發出按鈕在按下滑鼠時所代表的命令。For example, if the element represents a Button, a clickable point is any point in the visible client area of the Button that issues the command that the button represents when it is clicked by the mouse.

適用於