WorkflowView.ScrollPosition Property


Gets or sets the position of the scrollbar on the WorkflowView.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

Public Property ScrollPosition As Point

Property Value

Type: System.Drawing.Point

A point describing the location of the scrollbar in screen coordinates.

Use the ScrollPosition to get or adjust the location of the scrollbar in the design surface.

The following example demonstrates setting the ScrollPosition property inside an implementation of a Panel control's OnMouseMove method. This example is from the Outlook Workflow Wizard SDK sample. For more information, see Outlook Workflow Wizard Sample.

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

.NET Framework
Available since 3.0
Return to top