Accusoft.NotateXpressSdk Namespace > NotateXpress Class : SetUseCustomCursorType Method |
'Declaration Public Sub SetUseCustomCursorType( _ ByVal cursorType As CursorSelection, _ ByVal tool As AnnotationTool, _ ByVal customCursor As IntPtr _ )
'Usage Dim instance As NotateXpress Dim cursorType As CursorSelection Dim tool As AnnotationTool Dim customCursor As IntPtr instance.SetUseCustomCursorType(cursorType, tool, customCursor)
public void SetUseCustomCursorType( CursorSelection cursorType, AnnotationTool tool, IntPtr customCursor )
public: void SetUseCustomCursorType( CursorSelection cursorType, AnnotationTool tool, IntPtr customCursor )
public: void SetUseCustomCursorType( CursorSelection cursorType, AnnotationTool tool, IntPtr customCursor )
Note: This should be set once as its associated with the NotateXpress object.
Make sure that the icon does not go out of scope, as the application controls ownership of the icon. .NET cursors only support Black and White.
If you want to use color cursors one option is to use the win32 LoadCursorFromFileprivate Cursor mynewcursor; mynewcursor = new Cursor("c:\\images\\test.cur"); NotateXpress1.SetUseCustomCursorType(CursorSelection.Creating, AnnotationTool.BlockHighlightTool, mynewcursor);