Search
DiagramView.AutoScrollAmount Property
See Also
 





Gets or sets the amount by which to auto-scroll the view when the mouse leaves the view boundaries while drawing.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 Syntax

C#  Copy Code

public float AutoScrollAmount { get; set; }

Visual Basic  Copy Code

Public Property AutoScrollAmount As Single

 Property Value

A value specifying how much to add or subtract from the current scroll position at each tick of the auto-scroll timer. The default value is 0.

 Remarks

To enable auto-scrolling, set AutoScroll = true. If auto-scrolling is enabled and the mouse pointer leaves the view boundaries while drawing, the controls starts a timer and adds AutoScrollAmount to the current scroll position each time the Tick event is raised. If this property is set to 0, the scroll amount added is 4 millimeters, independent fro the current MeasureUnit. If you set a value greater than 0, it is interpreted as a number of MeasureUnit units.

 See Also