GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / AutoScrollRegion Property
In This Topic
    AutoScrollRegion Property
    In This Topic
    Gets or sets the margin in the view where a mouse drag will automatically cause the view to scroll.
    Syntax
    [Category("Behavior")]
    [Description("The margin in the view where a mouse drag will automatically cause the view to scroll.")]
    public virtual Size AutoScrollRegion {get; set;}

    Property Value

    The Size value must have non-negative Width and Height, indicating in view coordinates the distance from the edge of the display area. Initially the value is 16x16.
    Remarks
    When the mouse drag point is within AutoScrollRegion.Width of the left or right sides, the view will automatically scroll horizontally in that direction. When the point is within AutoScrollRegion.Height of the top or bottom, the view will automatically scroll vertically in that direction. You can specify a distance of zero to disable autoscrolling in a direction; a value of 0x0 turns off autoscrolling altogether.
    See Also