The MouseAction that performs zoom.
Inheritance Hierarchy
System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.MouseAction
    Microsoft.VisualStudio.Modeling.Diagrams.PanZoomAction
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Class PanZoomAction _
    Inherits MouseAction
public class PanZoomAction : MouseAction
public ref class PanZoomAction : public MouseAction
type PanZoomAction =  
    class
        inherit MouseAction
    end
public class PanZoomAction extends MouseAction
The PanZoomAction type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | PanZoomAction | Initializes a new instance of the PanZoomAction class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | CanBumpScroll | Gets the mouse action and verifies whether it can cause the diagram to scroll. (Inherited from MouseAction.) | 
| .gif) | CurrentDiagramArgs | Gets the event arguments for the current diagram in which the mouse action occurred. (Inherited from MouseAction.) | 
| .gif) | CurrentMouseActionEvent | Gets the current event for the mouse action. (Inherited from MouseAction.) | 
| .gif) | CurrentMouseActionState | Gets the current state for the mouse action. (Inherited from MouseAction.) | 
| .gif) | CurrentPoint | Gets or sets the mouse position for the current mouse action. (Inherited from MouseAction.) | 
| .gif) | Diagram | Gets the diagram to which the mouse action is assigned. (Inherited from MouseAction.) | 
| .gif) | HasTooltip | Gets the mouse action and verifies whether it can have a tooltip. (Inherited from MouseAction.) | 
| .gif) | IsActive | Gets the mouse action and verifies whether it is active. (Inherited from MouseAction.) | 
| .gif) | MouseDownHitShape | Gets shape over which the mouse action occurred. (Inherited from MouseAction.) | 
| .gif) | MouseDownPoint | Gets the position of the most recent mouse-down event. (Inherited from MouseAction.) | 
| .gif) | PreviousPoint | Gets or sets the position of the previous mouse-down event. (Inherited from MouseAction.) | 
| .gif) | ResetToolboxOnDragDrop | Whether to reset toolbox selection after a drag-drop operation triggered by this mouse action. Base implementation always returns true, which means the toolbox selection will be reset after a drag-drop operation triggered by this mouse action. (Inherited from MouseAction.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Activate | Activates the mouse action. (Inherited from MouseAction.) | 
| .gif) | CanCancel | Gets the mouse action and verifies whether it can be canceled. (Inherited from MouseAction.) | 
| .gif) | Cancel | Cancels the mouse action. (Inherited from MouseAction.) | 
| .gif) | CanComplete | Gets the mouse action and verifies whether it can be completed. (Inherited from MouseAction.) | 
| .gif) | CaptureMouse | Gets the mouse action. (Inherited from MouseAction.) | 
| .gif) | Click | Performs actions for derived classes when the mouse is clicked. (Inherited from MouseAction.) | 
| .gif) | Complete | Completes the mouse action. (Inherited from MouseAction.) | 
| .gif) | ContextMenuRequested | Sends a request for the shortcut menu. (Inherited from MouseAction.) | 
| .gif) | Dispose() | Releases all resources used by the MouseAction. (Inherited from MouseAction.) | 
| .gif) | Dispose(Boolean) | (Overrides MouseAction.Dispose(Boolean).) | 
| .gif) | DoPaintFeedback | Called by the DiagramClientView to paint the feedback for the MouseAction. (Overrides MouseAction.DoPaintFeedback(DiagramPaintEventArgs).) | 
| .gif) | DoubleClick | Performs actions for derived classes when a user double-clicks the mouse. (Inherited from MouseAction.) | 
| .gif) | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | 
| .gif) | Finalize | Finalizes the mouse action but does not dispose it. (Inherited from MouseAction.) | 
| .gif) | GetCursor | Gets the cursor to display at the specified mouse position. (Overrides MouseAction.GetCursor(Cursor, DiagramClientView, PointD).) | 
| .gif) | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | 
| .gif) | GetTooltipText | Gets the tooltip text for an item on the diagram. (Inherited from MouseAction.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | GotFocus | Assigns the focus to the mouse action. (Inherited from MouseAction.) | 
| .gif) | Invalidate | Invalidates the old and new feedback. (Overrides MouseAction.Invalidate(DiagramClientView).) | 
| .gif) | LostFocus | Removes focus from the mouse action. (Inherited from MouseAction.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | MouseDown | Performs actions for derived classes when a user clicks the mouse. (Inherited from MouseAction.) | 
| .gif) | MouseEnter | Performs actions for derived classes when the mouse points to a shape in the diagram. (Inherited from MouseAction.) | 
| .gif) | MouseHover | Performs actions for derived classes when the user points to an area or an element in the diagram. (Inherited from MouseAction.) | 
| .gif) | MouseLeave | Performs actions for derived classes when the mouse no longer points to the shape in the diagram. (Inherited from MouseAction.) | 
| .gif) | MouseMove | Performs actions for derived classes when the user moves the mouse over the diagram. (Inherited from MouseAction.) | 
| .gif) | MouseUp | Performs actions for derived classes when the user releases the mouse button. (Inherited from MouseAction.) | 
| .gif) | MouseWheel | Performs actions for derived classes when the user rotates the mouse wheel. (Inherited from MouseAction.) | 
| .gif) | OnClicked | Zooms in or out around the current point. (Overrides MouseAction.OnClicked(MouseActionEventArgs).) | 
| .gif) | OnContextMenuRequested | Called when the context menu is requested. (Overrides MouseAction.OnContextMenuRequested(DiagramMouseEventArgs).) | 
| .gif) | OnDiagramGotFocus | Alerts listeners that the diagram has the focus. (Inherited from MouseAction.) | 
| .gif) | OnDiagramLostFocus | Cancels the MouseAction. (Overrides MouseAction.OnDiagramLostFocus(LostFocusEventArgs).) | 
| .gif) | OnDiagramScrolled | Alerts listeners that the user has scrolled the diagram. (Inherited from MouseAction.) | 
| .gif) | OnDoubleClick | Prevents the double-click from having any effect. (Overrides MouseAction.OnDoubleClick(DiagramPointEventArgs).) | 
| .gif) | OnDragCanceled | Alerts listeners that the drag operation has been canceled. (Inherited from MouseAction.) | 
| .gif) | OnDragCompleted | Performs the zoom action given the rectangle specified by the starting mouse position and the current mouse position. (Overrides MouseAction.OnDragCompleted(MouseActionEventArgs).) | 
| .gif) | OnDraggingBegun | Alerts listeners that the drag operation has begun. (Inherited from MouseAction.) | 
| .gif) | OnDraggingEnded | Alerts listeners that the drag operation has ended. (Inherited from MouseAction.) | 
| .gif) | OnDragPendingBegun | Alerts listeners that the drag operation is pending. (Inherited from MouseAction.) | 
| .gif) | OnDragPendingEnded | Alerts listeners that the drag operation is no longer pending. (Inherited from MouseAction.) | 
| .gif) | OnHoveringBegun | Alerts listeners that the mouse is hovering over the diagram. (Inherited from MouseAction.) | 
| .gif) | OnHoveringEnded | Alerts listeners that the mouse is no longer hovering over the diagram. (Inherited from MouseAction.) | 
| .gif) | OnMouseActionActivated | Alerts listeners that the mouse action has begun. (Inherited from MouseAction.) | 
| .gif) | OnMouseActionCanceled | Alters listeners that the mouse action has been canceled. (Inherited from MouseAction.) | 
| .gif) | OnMouseActionCompleted | Alerts listeners that the mouse action has completed. (Inherited from MouseAction.) | 
| .gif) | OnMouseActionDeactivated | Alerts listeners that the mouse action has been deactivated. (Inherited from MouseAction.) | 
| .gif) | OnMouseDown | Saves the starting mouse position. (Overrides MouseAction.OnMouseDown(DiagramMouseEventArgs).) | 
| .gif) | OnMouseEnter | Alerts listeners that the mouse has moved over a shape in the diagram. (Inherited from MouseAction.) | 
| .gif) | OnMouseHover | Alerts listeners that the mouse is pointing to an area or an element in the diagram. (Inherited from MouseAction.) | 
| .gif) | OnMouseLeave | Alerts listeners that the mouse is no longer over the shape in the diagram. (Inherited from MouseAction.) | 
| .gif) | OnMouseMove | Invalidates old and new feedback. (Overrides MouseAction.OnMouseMove(DiagramMouseEventArgs).) | 
| .gif) | OnMouseUp | (Overrides MouseAction.OnMouseUp(DiagramMouseEventArgs).) | 
| .gif) | OnMouseWheel | Zooms in and out. (Overrides MouseAction.OnMouseWheel(DiagramMouseEventArgs).) | 
| .gif) | ReleaseMouse | Alerts listeners that the user has released the mouse button. (Inherited from MouseAction.) | 
| .gif) | Scrolled | Alerts listeners that the user has scrolled the diagram. (Inherited from MouseAction.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | MouseActionActivated | Occurs when a mouse action starts. (Inherited from MouseAction.) | 
| .gif) | MouseActionDeactivated | Occurs when a mouse action ends. (Inherited from MouseAction.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.