Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.UI Namespace / UIHelper Class / GetNextActiveCellPosition Method
A boolean value indicates affected moving direction from left to right or not
The command can be used to move the active to the result position.


In This Topic
    GetNextActiveCellPosition Method
    In This Topic
    Get the next suggest position for moving active cell.
    Syntax
    'Declaration
     
    
    Public Shared Function GetNextActiveCellPosition( _
       ByVal worksheet As IWorksheet, _
       ByVal foward As Boolean, _
       ByRef command As Command, _
       Optional ByVal direction As Direction, _
       Optional ByVal isUIAction As Boolean _
    ) As CellReference
    'Usage
     
    
    Dim worksheet As IWorksheet
    Dim foward As Boolean
    Dim command As Command
    Dim direction As Direction
    Dim isUIAction As Boolean
    Dim value As CellReference
     
    value = UIHelper.GetNextActiveCellPosition(worksheet, foward, command, direction, isUIAction)
    public static CellReference GetNextActiveCellPosition( 
       IWorksheet worksheet,
       bool foward,
       out Command command,
       Direction direction,
       bool isUIAction
    )

    Parameters

    worksheet
    foward
    A boolean value indicates affected moving direction from left to right or not
    command
    The command can be used to move the active to the result position.
    direction
    isUIAction

    Return Value

    New suggest position of active cell. If it is Empty then does not care about new position
    See Also