Accusoft.NotateXpress13.Net
SetUseCustomCursorType Method
Example 




Type of the cursor.
The Annotation tool.
The custom cursor handle.
This is for replacing the built in cursors that are created by turning on SetUseCursorType.
Syntax
'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
) 

Parameters

cursorType
Type of the cursor.
tool
The Annotation tool.
customCursor
The custom cursor handle.
Remarks

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 LoadCursorFromFile
Example
How to load in a cursor handle
private Cursor mynewcursor;
mynewcursor = new Cursor("c:\\images\\test.cur");
NotateXpress1.SetUseCustomCursorType(CursorSelection.Creating, AnnotationTool.BlockHighlightTool, mynewcursor);
See Also

Reference

NotateXpress Class
NotateXpress Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback