LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
SelectObjectCursor Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationManager Class : SelectObjectCursor Property



The SelectObjectCursor Property supports WPF/Silverlight.

The SelectObjectCursor Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the System.Windows.Input.Cursor mouse pointer image used when hovering over an unselected annotation object. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property SelectObjectCursor As Cursor
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As Cursor
 
instance.SelectObjectCursor = value
 
value = instance.SelectObjectCursor
C# 
public Cursor SelectObjectCursor {get; set;}
C++/CLI 
public:
property Cursor^ SelectObjectCursor {
   Cursor^ get();
   void set (    Cursor^ value);
}

Property Value

The System.Windows.Input.Cursor mouse pointer image used when hovering over an unselected annotation object.

Example

This example sets the automation manager to various mouse cursors.

Visual BasicCopy Code
Private Sub AnnAutomationManager_SelectObjectCursor(ByVal manager As AnnAutomationManager)
   ' Set the cursor used in design mode hovering over an unselected annotation object.
   manager.SelectObjectCursor = Cursors.Cross
   ' Set the cursor used in design mode when the cursor is over a selected object (but not over the control points).
   manager.SelectedObjectCursor = Cursors.Hand
   ' Set the cursor used in design mode when cursor is over a control point.
   manager.ControlPoint.Cursor = Cursors.Cross
   ' Set the cursor used in design mode when dragging and selecting a group of objects
   manager.SelectRectangleCursor = Cursors.Arrow
   ' Set the cursor used in run mode when hovering over an object
   manager.RunCursor = Cursors.Hand
   ' Set the cursor used in design mode when hovering over an upper left/lower right control point
   manager.ControlPointNWSECursor = Cursors.ScrollNW
   ' Set the cursor used in design mode when hovering over an upper right/lower left control point
   manager.ControlPointNESWCursor = Cursors.ScrollNE
   ' Set the cursor used in design mode when hovering over an upper/lower middle control point
   manager.ControlPointNSCursor = Cursors.ScrollN
   ' Set the cursor used in design mode when hovering over an side middle control point
   manager.ControlPointWECursor = Cursors.ScrollW
   ' Set the cursor used in design mode when hovering over the rotate center control point
   manager.RotateCenterControlPoint.Cursor = Cursors.Hand
   ' Set the cursor used in design mode when hovering over the rotate gripper control point
   manager.RotateGripperControlPoint.Cursor = Cursors.SizeAll
End Sub
C#Copy Code
private void AnnAutomationManager_SelectObjectCursor(AnnAutomationManager manager)
{
   // Set the cursor used in design mode hovering over an unselected annotation object.
   manager.SelectObjectCursor = Cursors.Cross;
   // Set the cursor used in design mode when the cursor is over a selected object (but not over the control points).
   manager.SelectedObjectCursor = Cursors.Hand;
   // Set the cursor used in design mode when cursor is over a control point.
   manager.ControlPoint.Cursor = Cursors.Cross;
   // Set the cursor used in design mode when dragging and selecting a group of objects
   manager.SelectRectangleCursor = Cursors.Arrow;
   // Set the cursor used in run mode when hovering over an object
   manager.RunCursor = Cursors.Hand;
   // Set the cursor used in design mode when hovering over an upper left/lower right control point
   manager.ControlPointNWSECursor = Cursors.ScrollNW;
   // Set the cursor used in design mode when hovering over an upper right/lower left control point
   manager.ControlPointNESWCursor = Cursors.ScrollNE;
   // Set the cursor used in design mode when hovering over an upper/lower middle control point
   manager.ControlPointNSCursor = Cursors.ScrollN;
   // Set the cursor used in design mode when hovering over an side middle control point
   manager.ControlPointWECursor = Cursors.ScrollW;
   // Set the cursor used in design mode when hovering over the rotate center control point
   manager.RotateCenterControlPoint.Cursor = Cursors.Hand;
   // Set the cursor used in design mode when hovering over the rotate gripper control point
   manager.RotateGripperControlPoint.Cursor = Cursors.SizeAll;
}
SilverlightCSharpCopy Code
private void AnnAutomationManager_SelectObjectCursor(AnnAutomationManager manager)
{
   // Set the cursor used in design mode when the cursor is over a selected object (but not over the control points).
   manager.SelectedObjectCursor = Cursors.Hand;
   // Set the cursor used in design mode when dragging and selecting a group of objects
   manager.SelectRectangleCursor = Cursors.Arrow;
   // Set the cursor used in run mode when hovering over an object
   manager.RunCursor = Cursors.Hand;
   // Set the cursor used in design mode when hovering over the rotate center control point
   manager.RotateCenterControlPoint.Cursor = Cursors.Hand;
   // Set the cursor used in design mode when hovering over the rotate gripper control point
   manager.RotateGripperControlPoint.Cursor = Cursors.SizeWE;
}
SilverlightVBCopy Code
Private Sub AnnAutomationManager_SelectObjectCursor(ByVal manager As AnnAutomationManager)
   ' Set the cursor used in design mode when the cursor is over a selected object (but not over the control points).
   manager.SelectedObjectCursor = Cursors.Hand
   ' Set the cursor used in design mode when dragging and selecting a group of objects
   manager.SelectRectangleCursor = Cursors.Arrow
   ' Set the cursor used in run mode when hovering over an object
   manager.RunCursor = Cursors.Hand
   ' Set the cursor used in design mode when hovering over the rotate center control point
   manager.RotateCenterControlPoint.Cursor = Cursors.Hand
   ' Set the cursor used in design mode when hovering over the rotate gripper control point
   manager.RotateGripperControlPoint.Cursor = Cursors.SizeWE
End Sub

Remarks

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

SelectObjectCursor requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.