ZoomToMouseCursor Property
In This Topic
Gets/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;
Syntax
'Declaration
<System.ComponentModel.CategoryAttribute("Behavior")>
<System.ComponentModel.DescriptionAttribute("Gets/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.")>
<System.ComponentModel.DefaultValueAttribute(True)>
Public Property ZoomToMouseCursor As System.Boolean
'Usage
Dim instance As NMouseWheelScrollAndZoomTool
Dim value As System.Boolean
instance.ZoomToMouseCursor = value
value = instance.ZoomToMouseCursor
[System.ComponentModel.Category("Behavior")]
[System.ComponentModel.Description("Gets/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.")]
[System.ComponentModel.DefaultValue(true)]
public System.bool ZoomToMouseCursor {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also