WorkflowView.ScreenPointToLogical(Point) 方法

定義

將 a Point 從螢幕座標轉換為邏輯座標。

public:
 System::Drawing::Point ScreenPointToLogical(System::Drawing::Point screenPoint);
public System.Drawing.Point ScreenPointToLogical(System.Drawing.Point screenPoint);
member this.ScreenPointToLogical : System.Drawing.Point -> System.Drawing.Point
Public Function ScreenPointToLogical (screenPoint As Point) As Point

參數

screenPoint
Point

Point 螢幕座標轉換成邏輯座標。

傳回

他們 Point 將螢幕座標轉換為邏輯座標。

備註

WorkflowView 使用兩個座標空間:邏輯空間與客戶端空間:

客戶端座標相對於 的左上角 WorkflowView。 左上角為 0,0;在可見區域中,x 和 y 座標會垂直和水平增加。 客戶端座標系會受到 的 WorkflowView 縮放等級和滾動條位置的影響。

在邏輯座標系中,每個物件總是映射到 0,0。 垂直與水平位置不受縮放或滾動條位置影響。

適用於