WorkflowView.ClientSizeToLogical(Size) 方法

定义

Size 从工作区坐标转换到逻辑坐标。Converts a Size from client to logical coordinates.

public:
 System::Drawing::Size ClientSizeToLogical(System::Drawing::Size clientSize);
public System.Drawing.Size ClientSizeToLogical (System.Drawing.Size clientSize);
member this.ClientSizeToLogical : System.Drawing.Size -> System.Drawing.Size
Public Function ClientSizeToLogical (clientSize As Size) As Size

参数

clientSize
Size

要从工作区坐标转换到逻辑坐标的 SizeThe Size to convert from client to logical coordinates.

返回

Size

已从工作区坐标转换到逻辑坐标的 SizeThe Size converted from client coordinates to logical coordinates.

注解

WorkflowView 使用两个坐标空间:逻辑和工作区:WorkflowView uses two coordinate spaces: logical and client:

  • 工作区坐标相对于 WorkflowView 的左上角。Client coordinates are relative to the upper-left corner of the WorkflowView. 左上角的坐标是 0,0;在可视区域中,x 和 y 坐标沿垂直和水平方向增加。The upper-left corner is 0,0; x and y coordinates increase vertically and horizontally in the viewable area. 工作区坐标系统受 WorkflowView 的缩放级别和滚动条位置的影响。The client coordinate system is affected by the zoom level of the WorkflowView and by the scrollbar position.

在逻辑坐标系统中,每个对象始终映射到 0,0。In the logical coordinate system every object is always mapped to 0,0. 该位置在垂直方向和水平方向不受缩放级别或滚动条位置的影响。The position vertically and horizontally is not affected by zoom or scrollbar position.

适用于