MouseAction.GetCursor Method
Gets the pointer to display for the mouse.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
Public Overridable Function GetCursor ( _
currentCursor As Cursor, _
diagramClientView As DiagramClientView, _
mousePosition As PointD _
) As Cursor
public virtual Cursor GetCursor(
Cursor currentCursor,
DiagramClientView diagramClientView,
PointD mousePosition
)
public:
virtual Cursor^ GetCursor(
Cursor^ currentCursor,
DiagramClientView^ diagramClientView,
PointD mousePosition
)
abstract GetCursor :
currentCursor:Cursor *
diagramClientView:DiagramClientView *
mousePosition:PointD -> Cursor
override GetCursor :
currentCursor:Cursor *
diagramClientView:DiagramClientView *
mousePosition:PointD -> Cursor
public function GetCursor(
currentCursor : Cursor,
diagramClientView : DiagramClientView,
mousePosition : PointD
) : Cursor
Parameters
- currentCursor
Type: System.Windows.Forms.Cursor
The pointer to display.
- diagramClientView
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
The client view of the diagram.
- mousePosition
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The position of the mouse over the diagram.
Return Value
Type: System.Windows.Forms.Cursor
The pointer to display for the mouse.
Remarks
This method is called by the DiagramClientView if this MouseAction is active or if it is the potential MouseAction.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.