Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SpreadView Class / GetCursor Method
Index of the pointer type (for which part of the control)
Example


In This Topic
    GetCursor Method (SpreadView)
    In This Topic
    Gets the pointer displayed over a specific area in the view.
    Syntax
    'Declaration
     
    Public Function GetCursor( _
       ByVal index As CursorType _
    ) As Cursor
    'Usage
     
    Dim instance As SpreadView
    Dim index As CursorType
    Dim value As Cursor
     
    value = instance.GetCursor(index)
    public Cursor GetCursor( 
       CursorType index
    )

    Parameters

    index
    Index of the pointer type (for which part of the control)

    Return Value

    Cursor object containing the image of the pointer
    Example
    This example uses the GetCursor 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