←Select platform

SelectObjectCursor Property

Summary

Gets or sets the System.Windows.Input.Cursor mouse pointer image used when hovering over an unselected annotation object.

Syntax

C#
VB
C++
public Cursor SelectObjectCursor { get; set; } 
  
Public Property SelectObjectCursor As Cursor 
public: 
property Cursor^ SelectObjectCursor { 
   Cursor^ get(); 
   void set (    Cursor^ ); 
} 

Property Value

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

Remarks

Used when UserMode is AnnUserMode.Design

Example

This example sets the automation manager to various mouse cursors.

C#
VB
Silverlight C#
Silverlight VB
using Leadtools.Windows.Controls; 
using Leadtools.Windows.Annotations; 
using Leadtools.Demos; 
using Leadtools.Help; 
 
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; 
} 
Imports Leadtools.Windows.Controls 
Imports Leadtools.Windows.Annotations 
 
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 
using Leadtools.Windows.Controls; 
using Leadtools.Windows.Annotations; 
using Leadtools.Examples; 
using Leadtools.Silverlight.Demos; 
//using Leadtools.Help; 
 
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; 
} 
Imports Leadtools.Windows.Controls 
Imports Leadtools.Windows.Annotations 
Imports Leadtools.Silverlight.Demos 
'using Leadtools.Help; 
 
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 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Annotations Assembly