ToolboxAction.GetCursor(Cursor, DiagramClientView, PointD) Method
Definition
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.
Gets the cursor to display at the specified mouse position.
public:
override System::Windows::Forms::Cursor ^ GetCursor(System::Windows::Forms::Cursor ^ currentCursor, Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ diagramClientView, Microsoft::VisualStudio::Modeling::Diagrams::PointD mousePosition);
public override System.Windows.Forms.Cursor GetCursor (System.Windows.Forms.Cursor currentCursor, Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView diagramClientView, Microsoft.VisualStudio.Modeling.Diagrams.PointD mousePosition);
override this.GetCursor : System.Windows.Forms.Cursor * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> System.Windows.Forms.Cursor
Public Overrides Function GetCursor (currentCursor As Cursor, diagramClientView As DiagramClientView, mousePosition As PointD) As Cursor
Parameters
- currentCursor
- Cursor
The existing cursor.
- diagramClientView
- DiagramClientView
The DiagramClientView requesting the cursor.
- mousePosition
- PointD
The cursor position in world units relative to the top-left of the diagram.
Returns
The cursor to display at the specified mouse position.
Remarks
This method is called by the DiagramClientView if this MouseAction is active or if it is the potential MouseAction.