WorkflowView.ScrollPosition Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.