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
hRatiodoubleVisible width divided by the width of the total display extent; 1.0 or more means everything is visible and no horizontal scrolling is possible
hPositiondoubleHorizontal scroll position from 0.0 (leftmost) to 1.0 (rightmost)
vRatiodoubleVisible height divided by the height of the total display extent; 1.0 or more means everything is visible
vPositiondoubleVertical scroll position from 0.0 (bottom) to 1.0 (top)
Constructors
ScrollPositionChanged(object, nint)
public ScrollPositionChanged(object @object, nint method)
Parameters
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
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Invoke(double, double, double, double)
public virtual void Invoke(double hRatio, double hPosition, double vRatio, double vPosition)