NScrollAndZoomToolBase Class Members
In This Topic
The following tables list the members exposed by NScrollAndZoomToolBase.
Public Fields
Public Properties
| Name | Description |
| ActivateDelay | Controls the delay which must ellapse, before the tool can be activated again (in milliseconds). By default set to 500. |
| AllowAnchorScrolling | Specifies whether anchor scrolling is allowed. |
| AllowWheelScrolling | Specifies whether wheel scrolling is allowed |
| AllowWheelZooming | Specifies whether wheel zooming is allowed |
| DeactiveDelay | Controls the delay which must ellapse, before the tool can be deactivated (in milliseconds). By default set to 500. |
| DefaultScrollVertical | Gets or sets whether to perform vertical or horizontal scrolling when the mouse wheel is rotated. By default set to true (e.g. scroll vertically) |
| FlipScrollDirectionModifierKey | Gets or sets the modifier key, which flips the wheel scroll direction. By default the tool will scroll either horizontally or vertically as specified by the DefaultScrollVertical property. By default set to Shift. |
| NoScrollDistance | Controls the distance between the start and current mouse position below which no scolling is performed |
| OwnerViewportBase | Safely gets the owner viewport base. |
| ScrollByDefault | When set to true the tool will scroll the view by default, otherwise it will zoom it. Use the ToggleScrollZoomModifierKey to switch to the other action). By default true. |
| Time | Controls the speed of the anchor scrolling. Measured in milliseconds. By default set to 50. |
| ToggleScrollZoomModifierKey | Gets or sets the modifier key, which when pressed, toggles wheel zooming and scrolling. Whether zooming or scrolling is performed by default is specified by the ScrollByDefault property. By default set to Control. |
| UnitScrollDistance | Controls the distance between the start and current mouse position for which the tool must perform a single unit scroll. Measured in pixels. |
| ZoomToMouseCursor | Gets or sets whether to zoom to the the mouse cursor center. When set to true, the zooming will preserve the current mouse position projection in viewport coordinates. When set to false, the zooming will preserve the current viewport center. By default set to true. |
Top
Public Methods
| Name | Description |
| CanActivate | Overloaded. Overridden. Overriden to block activation, if the ActivateDelay period has not expired |
| CanDeactivate | Overloaded. Overridden. Overriden to block deactivation, if the DeactiveDelay period has not expired |
| OnMouseWheel | Overridden. Handler for the NMouse.WheelEvent event. |
Top
See Also