ImageGear PDF v25.1 - Updated
ManageCursor Method (ImGearAnnotatorPolyController)




ImageGear.Windows.Controls.Art Assembly > ImageGear.Windows.Controls Namespace > ImGearAnnotatorPolyController Class : ManageCursor Method
The mark the mouse is over.
The position of the mouse (in device pixels).
The mark controller data.
Method that is called to update the mouse cursor, set an ID for which point of the mark the mouse is currently over, and set the type of resizing to use for that point.
Syntax
'Declaration
 
Public Overrides Sub ManageCursor( _
   ByVal mark As ImGearARTMark, _
   ByVal mousePoint As ImGearDoublePoint, _
   ByVal markControllerData As ImGearAnnotatorMarkControllerData _
) 
'Usage
 
Dim instance As ImGearAnnotatorPolyController
Dim mark As ImGearARTMark
Dim mousePoint As ImGearDoublePoint
Dim markControllerData As ImGearAnnotatorMarkControllerData
 
instance.ManageCursor(mark, mousePoint, markControllerData)
public override void ManageCursor( 
   ImGearARTMark mark,
   ImGearDoublePoint mousePoint,
   ImGearAnnotatorMarkControllerData markControllerData
)
public: void ManageCursor( 
   ImGearARTMark* mark,
   ImGearDoublePoint mousePoint,
   ImGearAnnotatorMarkControllerData* markControllerData
) override 
public:
void ManageCursor( 
   ImGearARTMark^ mark,
   ImGearDoublePoint mousePoint,
   ImGearAnnotatorMarkControllerData^ markControllerData
) override 

Parameters

mark
The mark the mouse is over.
mousePoint
The position of the mouse (in device pixels).
markControllerData
The mark controller data.
Remarks
This method checks if the mouse is over a point in your custom mark. If it is, the markControllerData parameter is updated so that the Cursor property is set to the Hand cursor and the Hand cursor displays. The ID of the point the cursor is over is set, and the type of resizing to perform for the point is set. If the mouse is clicked, the specified point ID and resize type will be passed to the ImGearAnnotatorMarkController.Resize method, which can use this information to modify the size of the mark or the position of a point in the mark. You must override the Resize method to enable resizing your custom mark.
See Also

Reference

ImGearAnnotatorPolyController Class
ImGearAnnotatorPolyController Members