Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / EditorFocusCursorPosition Enumeration
Example Example


In This Topic
    EditorFocusCursorPosition Enumeration
    In This Topic
    Specifies the position of the pointer when the edit control receives the focus.
    Syntax
    'Declaration
     
    Public Enum EditorFocusCursorPosition 
       Inherits System.Enum
    'Usage
     
    Dim instance As EditorFocusCursorPosition
    public enum EditorFocusCursorPosition : System.Enum 
    Members
    MemberDescription
    End Positions the pointer at the end of the text in the control, without any text selected
    FirstInputPosition Positions the pointer at the first input position in the control, without any text selected
    Inherit Specifies that the position is determined by the editor type and selection policy
    MouseLocation Positions the pointer at the location of the pointer device, without any text selected
    SelectAll Positions the pointer at the beginning of the text in the control
    Example
    This example sets the EditorFocus property.
    FarPoint.Win.Spread.CellType.GeneralCellType celltest = new FarPoint.Win.Spread.CellType.GeneralCellType();
    celltest.FocusPosition = FarPoint.Win.Spread.CellType.EditorFocusCursorPosition.MouseLocation;
    FpSpread1.Sheets[0].Cells[0, 0].CellType = celltest;
    Dim celltest As New FarPoint.Win.Spread.CellType.GeneralCellType
    celltest.FocusPosition = FarPoint.Win.Spread.CellType.EditorFocusCursorPosition.MouseLocation
    FpSpread1.Sheets(0).Cells(0, 0).CellType = celltest
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             FarPoint.Win.Spread.CellType.EditorFocusCursorPosition

    See Also