WorkflowView.ScrollPosition 屬性

定義

取得或設定 WorkflowView 上的捲軸位置。

public:
 property System::Drawing::Point ScrollPosition { System::Drawing::Point get(); void set(System::Drawing::Point value); };
public System.Drawing.Point ScrollPosition { get; set; }
member this.ScrollPosition : System.Drawing.Point with get, set
Public Property ScrollPosition As Point

屬性值

Point

以螢幕座標 (Screen Coordinate) 描述捲軸位置的點。

範例

下列範例將示範在 Panel 控制項實作的 OnMouseMove 方法中設定 ScrollPosition 屬性。 這個範例來自 Outlook Workflow Wizard SDK 範例。 如需詳細資訊,請參閱Outlook工作流程精靈範例

protected override bool OnMouseMove(MouseEventArgs eventArgs)
{
    // Allow other components to process this event by not returning true.
    if (this.mouseDown)
    {
        this.workflowView.ScrollPosition = new Point(eventArgs.X, eventArgs.Y);
    }
    return false;
}
Protected Overrides Function OnMouseMove(ByVal eventArgs As System.Windows.Forms.MouseEventArgs) As Boolean
    ' Allow other components to process this event by not returning true.
    If (Me.mouseDown) Then
        Me.workflowView.ScrollPosition = New Point(eventArgs.X, eventArgs.Y)
    End If
    Return False
End Function

備註

使用 ScrollPosition 在設計介面中取得或調整捲軸的位置。

適用於