WorkflowView.LogicalRectangleToClient(Rectangle) 方法

定義

將 a Rectangle 從邏輯座標轉換成客戶端座標。

public:
 System::Drawing::Rectangle LogicalRectangleToClient(System::Drawing::Rectangle rectangle);
public System.Drawing.Rectangle LogicalRectangleToClient(System.Drawing.Rectangle rectangle);
member this.LogicalRectangleToClient : System.Drawing.Rectangle -> System.Drawing.Rectangle
Public Function LogicalRectangleToClient (rectangle As Rectangle) As Rectangle

參數

rectangle
Rectangle

然後 Rectangle 轉換成客戶座標。

傳回

Rectangle A 從邏輯座標轉換成客戶端座標。

備註

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

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

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

適用於