DragDropPendingAction.GetCursor Method
Gets the cursor to display at the specified mouse position.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Overrides Function GetCursor ( _
currentCursor As Cursor, _
diagramClientView As DiagramClientView, _
mousePosition As PointD _
) As Cursor
public override Cursor GetCursor(
Cursor currentCursor,
DiagramClientView diagramClientView,
PointD mousePosition
)
public:
virtual Cursor^ GetCursor(
Cursor^ currentCursor,
DiagramClientView^ diagramClientView,
PointD mousePosition
) override
abstract GetCursor :
currentCursor:Cursor *
diagramClientView:DiagramClientView *
mousePosition:PointD -> Cursor
override GetCursor :
currentCursor:Cursor *
diagramClientView:DiagramClientView *
mousePosition:PointD -> Cursor
public override function GetCursor(
currentCursor : Cursor,
diagramClientView : DiagramClientView,
mousePosition : PointD
) : Cursor
Parameters
currentCursor
Type: CursorThe existing cursor.
diagramClientView
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientViewThe DiagramClientView requesting the cursor.
mousePosition
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe cursor position in world units relative to the top-left of the diagram.
Return Value
Type: Cursor
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.