C# Class Smrf.NodeXL.Visualization.Wpf.MouseDrag

Represents a mouse drag operation.
Create an instance of this class when a MouseDown event occurs. When the mouse is moved, call OnMouseMove to determine whether the mouse has moved far enough to begin a mouse drag operation. When the mouse button is released, call OnMouseUp.
Inheritance: VisualizationBase
Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_bDragIsInProgress System.Boolean
m_oMouseDownLocation Point

Public Methods

Method Description
AssertValid ( ) : void
MouseDrag ( Point mouseDownLocation ) : System

Initializes a new instance of the MouseDrag class.

OnMouseMove ( Point currentMouseLocation ) : System.Boolean
OnMouseUp ( ) : System.Boolean

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

MouseDrag() public method

Initializes a new instance of the MouseDrag class.
public MouseDrag ( Point mouseDownLocation ) : System
mouseDownLocation Point /// Location where the MouseDown event occurred, in client coordinates. ///
return System

OnMouseMove() public method

public OnMouseMove ( Point currentMouseLocation ) : System.Boolean
currentMouseLocation Point
return System.Boolean

OnMouseUp() public method

public OnMouseUp ( ) : System.Boolean
return System.Boolean

Property Details

m_bDragIsInProgress protected_oe property

protected Boolean,System m_bDragIsInProgress
return System.Boolean

m_oMouseDownLocation protected_oe property

protected Point m_oMouseDownLocation
return Point