WorkflowView.ScreenPointToLogical(Point) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 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
參數
傳回
他們 Point 將螢幕座標轉換為邏輯座標。
備註
WorkflowView 使用兩個座標空間:邏輯空間與客戶端空間:
客戶端座標相對於 的左上角 WorkflowView。 左上角為 0,0;在可見區域中,x 和 y 座標會垂直和水平增加。 客戶端座標系會受到 的 WorkflowView 縮放等級和滾動條位置的影響。
在邏輯座標系中,每個物件總是映射到 0,0。 垂直與水平位置不受縮放或滾動條位置影響。