Export (0) Print
Expand All

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 Point ScrollPosition { get; set; }

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 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;
}

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft