Uredi

Deli z drugimi prek


WorkflowView.ScrollPosition Property

Definition

Gets or sets the position of the scrollbar on the 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

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

Remarks

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

Applies to