Edit

Share via


WorkflowView.ScrollPosition Property

Definition

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

public System.Drawing.Point ScrollPosition { get; set; }

Property Value

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

Examples

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

Remarks

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

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1