Spread Windows Forms 7.0 Product Documentation
SetCursor Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : SetCursor Method


index
Index of the pointer type (for which part of the control)
cursor
Image (Cursor object) to paint the pointer

Glossary Item Box

Sets the pointer displayed over a specific area at a specific time.

Syntax

Visual Basic (Declaration) 
Public Sub SetCursor( _
   ByVal index As CursorType, _
   ByVal cursor As Cursor _
) 
Visual Basic (Usage)Copy Code
Dim instance As SpreadView
Dim index As CursorType
Dim cursor As Cursor
 
instance.SetCursor(index, cursor)
C# 
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.
C#Copy Code
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);
VB.NETCopy Code
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)

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.