MouseAction Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for all mouse actions.
public ref class MouseAction abstract : IDisposable
public abstract class MouseAction : IDisposable
type MouseAction = class
interface IDisposable
Public MustInherit Class MouseAction
Implements IDisposable
- Inheritance
-
MouseAction
- Derived
- Implements
Derive from this class to create your own custom mouse actions, such as a connector mouse tool.
Mouse |
Initializes a new instance of the MouseAction class. |
Mouse |
Initializes a new instance of the MouseAction class. |
Action |
Gets an object representing the MouseAction-canceled state. |
Action |
Gets an object representing MouseAction-completed state. |
Can |
Called when a MouseMove event has been dispatched to this MouseAction. |
Clicked |
Gets an object representing the clicked state. |
Current |
Gets the latest DiagramEventArgs. A null value may be returned. |
Current |
Gets the current MouseAction event. |
Current |
Gets the current MouseAction state. |
Current |
Gets/Sets the mouse position for the current event. The position is in world units relative to the diagram's top-left. |
Diagram |
The Diagram to which this MouseAction belongs. |
Drag |
Gets an object representing the state in which the drag operation has been canceled. (The MouseAction itself is not considered canceled at this state.) |
Drag |
Gets an object representing the state in which the drag operation has completed. (The MouseAction itself is not considered completed at this state.) |
Dragging |
Gets an object representing the dragging state. |
Drag |
Gets an object representing the drag/click pending state. |
Has |
Gets whether this mouse action supports dynamic tooltip. |
Hovering |
Gets an object representing the hovering state. |
Inactive |
Gets an object representing the inactive MouseAction state. |
Is |
Gets a value indicating whether this MouseAction is currently active. |
Mouse |
Gets the hit shape of the most recent MouseDown event. |
Mouse |
Gets the mouse position of the most recent MouseDown event. The position is in world units relative to the diagram's top-left. |
Previous |
Gets/Sets the mouse position of the previous event. The position is in world units relative to the diagram's top-left. |
Reset |
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. |
Activate(Diagram |
Activates this MouseAction. |
Can |
Gets a value indicating whether this MouseAction can be canceled. |
Cancel(Diagram |
Cancels this MouseAction. |
Can |
Gets a value indicating whether this MouseAction can be completed. |
Capture |
Captures the mouse. |
Click(Diagram |
Called by the DiagramClientView to dispatch a Click event to this MouseAction. |
Complete(Diagram |
Completes this MouseAction. |
Context |
Called by the DiagramClientView to dispatch a ContextMenu event to this MouseAction. |
Dispose() | |
Dispose(Boolean) | |
Do |
Called by the DiagramClientView to paint the feedback for the MouseAction. |
Double |
Called by the DiagramClientView to dispatch a DoubleClick event to this MouseAction. |
Finalize() | |
Get |
Gets the cursor to display at the specified mouse position. |
Get |
Gets tooltip text for specified diagram item if HasTooltip returned true. |
Got |
Called by the DiagramClientView to dispatch a GotFocus event to this MouseAction. |
Invalidate(Diagram |
Called by this MouseAction to invalidate its feedback. |
Lost |
Called by the DiagramClientView to dispatch a LostFocus event to this MouseAction. |
Mouse |
Called by the DiagramClientView to dispatch a MouseDown event to this MouseAction. |
Mouse |
Called by the DiagramClientView to dispatch a MouseEnter event to this MouseAction. |
Mouse |
Called by the DiagramClientView to dispatch a MouseHover event to this MouseAction. |
Mouse |
Called by the DiagramClientView to dispatch a MouseLeave event to this MouseAction. |
Mouse |
Called by the DiagramClientView to dispatch a MouseMove event to this MouseAction. |
Mouse |
Called by the DiagramClientView to dispatch a MouseUp event to this MouseAction. |
Mouse |
Called by the DiagramClientView to dispatch a ContextMenuRequested event to this MouseAction. |
On |
Called when this MouseAction has received a non-dragging MouseDown + MouseUp combination or when it has received a Complete event. |
On |
Called when a ContextMenuRequested event has been dispatched to this MouseAction. |
On |
Called when a GotFocus event has been dispatched to this MouseAction. |
On |
Called when a LostFocus event has been dispatched to this MouseAction. |
On |
Called when a Scrolled event has been dispatched to this MouseAction. |
On |
Called when a DoubleClick event has been dispatched to this MouseAction. |
On |
Called when this MouseAction's drag operation has been canceled. |
On |
Called when this MouseAction's drag operation has completed. |
On |
Called when this MouseAction has entered the dragging state. |
On |
Called when this MouseAction has exited the dragging state. |
On |
Called when this MouseAction has entered the drag/click-pending state. |
On |
Called when this MouseAction has exited the drag/click-pending state. |
On |
Called when this MouseAction has entered the hovering state. |
On |
Called when this MouseAction has exited the hovering state. |
On |
Called when this MouseAction has been activated. |
On |
Called when the MouseAction has been canceled and is ready to be deactivated. |
On |
Called when the MouseAction has completed and is ready to be deactivated. |
On |
Called when this MouseAction has been deactivated. |
On |
Called when a MouseDown event has been dispatched to this MouseAction. |
On |
Called when a MouseEnter event has been dispatched to this MouseAction. |
On |
Called when a MouseHover event has been dispatched to this MouseAction. |
On |
Called when a MouseLeave event has been dispatched to this MouseAction. |
On |
Called when a MouseMove event has been dispatched to this MouseAction. |
On |
Called when a MouseUp event has been dispatched to this MouseAction. |
On |
Called when a MouseWheel event has been dispatched to this MouseAction. |
Release |
Releases the mouse capture. |
Scrolled(Diagram |
Called by the DiagramClientView to dispatch a Scrolled event to this MouseAction. |
Mouse |
Occurs when the MouseAction is activated. |
Mouse |
Occurs when the MouseAction is deactivated. |