FarPoint.Win.Spread
CursorType Enumeration
Example  See Also 
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : CursorType Enumeration


Specifies the area of the component in which to display a specific pointer.

Syntax

Visual Basic (Declaration) 
Public Enum CursorType 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As CursorType
C# 
public enum CursorType : Enum 

Members

MemberDescription
Normal Displays a pointer in the general area within the control
RowResize Displays a pointer in the row resize area
ColumnResize Displays a pointer in the column resize area
LockedCell Displays a pointer within a locked cell
ColumnHeader Displays a pointer within a column header
ColumnFooter Displays a pointer within a column footer
FooterCorner Displays a pointer within a footer corner
RowHeader Displays a pointer within a row header
DragDropArea Displays a pointer on the edge of the selection to drag and drop
Corner Displays a pointer within the sheet corner
TabStrip Displays a pointer in the sheet tabs
DragFill Displays a pointer on the edge of the area to drag and fill
RowColumnSplitBar Displays a pointer over row and column split bars
RowSplitBar Displays a pointer over the row split bar
ColumnSplitBar Displays a pointer over the column split bar
RowSplitBox Displays a pointer over the row split box
ColumnSplitBox Displays a pointer over the column split box
TabStripSplitBox Displays a pointer over the sheet tabs split box
RangeGroup Displays a pointer over the Range Group.
TitleBar Displays a pointer over the Title and Subtitle.
GrayArea Displays a pointer over the gray area.

Example

C#Copy Code
FarPoint.Win.Spread.FpSpread fpSpread1 = new FarPoint.Win.Spread.FpSpread();
FarPoint.Win.Spread.SheetView shv =
new FarPoint.Win.Spread.SheetView();
fpSpread1.Location =
new Point(10, 10);
fpSpread1.Height = 200;
fpSpread1.Width = 400;
Controls.Add(fpSpread1);
fpSpread1.Sheets.Add(shv);
Cursor setC, getC;
setC =
new Cursor(Application.StartupPath + "\\cellbtn.cur");
fpSpread1.SetCursor(FarPoint.Win.Spread.CursorType.Normal, setC);
getC = fpSpread1.GetCursor(FarPoint.Win.Spread.CursorType.Normal);
listBox1.Items.Add(Cursor.Position.ToString());
Visual BasicCopy Code
Dim fpSpread1 As New FarPoint.Win.Spread.FpSpread()
Dim shv As New FarPoint.Win.Spread.SheetView()
fpSpread1.Location = New Point(10, 10)
fpSpread1.Height = 200
fpSpread1.Width = 400
Controls.Add(fpSpread1)
fpSpread1.Sheets.Add(shv)
Dim setC, getC As Cursor
setC = New Cursor("..\bin\cellbtn.cur")
fpSpread1.SetCursor(FarPoint.Win.Spread.CursorType.Normal, setC)
getC = fpSpread1.GetCursor(FarPoint.Win.Spread.CursorType.Normal)
ListBox1.Items.Add(getC.Position.ToString())

Remarks

This enumeration allows you to display a different pointer over each different area.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CursorType

See Also