Table of Contents

Delegate ScrollPositionChanged

Namespace
CADability
Assembly
CADability.dll

Handler for ScrollPositionChangedEvent: tells the host (typically the control that owns the scroll bars) which part of the total display extent of a view is currently visible. The view raises the event after zooming, scrolling or resizing.

public delegate void ScrollPositionChanged(double hRatio, double hPosition, double vRatio, double vPosition)

Parameters

hRatio double

Visible width divided by the width of the total display extent; 1.0 or more means everything is visible and no horizontal scrolling is possible

hPosition double

Horizontal scroll position from 0.0 (leftmost) to 1.0 (rightmost)

vRatio double

Visible height divided by the height of the total display extent; 1.0 or more means everything is visible

vPosition double

Vertical scroll position from 0.0 (bottom) to 1.0 (top)

Constructors

ScrollPositionChanged(object, nint)

public ScrollPositionChanged(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(double, double, double, double, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(double hRatio, double hPosition, double vRatio, double vPosition, AsyncCallback callback, object @object)

Parameters

hRatio double
hPosition double
vRatio double
vPosition double
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(double, double, double, double)

public virtual void Invoke(double hRatio, double hPosition, double vRatio, double vPosition)

Parameters

hRatio double
hPosition double
vRatio double
vPosition double