Spread Windows Forms 11.0 Product Documentation
SetCursor Method (SpreadView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : SetCursor Method
Index of the pointer type (for which part of the control)
Image (Cursor object) to paint the pointer
Sets the pointer displayed over a specific area at a specific time.
Syntax
'Declaration
 
Public Sub SetCursor( _
   ByVal index As CursorType, _
   ByVal cursor As Cursor _
) 
'Usage
 
Dim instance As SpreadView
Dim index As CursorType
Dim cursor As Cursor
 
instance.SetCursor(index, cursor)
public void SetCursor( 
   CursorType index,
   Cursor cursor
)

Parameters

index
Index of the pointer type (for which part of the control)
cursor
Image (Cursor object) to paint the pointer
Example
This example uses the SetCursor method.
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
Cursor c;
sv.SetCursor(FarPoint.Win.Spread.CursorType.ColumnHeader, new System.Windows.Forms.Cursor("..\\..\\colhdr.cur"));
c = sv.GetCursor(FarPoint.Win.Spread.CursorType.ColumnHeader);
sv.SetCursor(FarPoint.Win.Spread.CursorType.Corner, c);
Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook
Dim c As Cursor
sv.SetCursor(FarPoint.Win.Spread.CursorType.ColumnHeader, New System.Windows.Forms.Cursor("..\colhdr.cur"))
c = sv.GetCursor(FarPoint.Win.Spread.CursorType.ColumnHeader)
sv.SetCursor(FarPoint.Win.Spread.CursorType.Corner, c)
See Also

Reference

SpreadView Class
SpreadView Members
GetCursor Method
CursorType Enum

User-Task Documentation

Customizing the Display of the Cursor