Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / MoveColumn Method / MoveColumn(Int32,Int32,Int32,Boolean) Method
Current index of the column to move
New index of the column after the move
Column count
Whether to move the content


In This Topic
    MoveColumn(Int32,Int32,Int32,Boolean) Method
    In This Topic
    Moves the specified column from its current index to the specified index, and shifts each column in between and the destination column one column in the direction of the specified column.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub MoveColumn( _
       ByVal fromIndex As Integer, _
       ByVal toIndex As Integer, _
       ByVal columnCount As Integer, _
       ByVal moveContent As Boolean _
    ) 
    'Usage
     
    
    Dim instance As SheetView
    Dim fromIndex As Integer
    Dim toIndex As Integer
    Dim columnCount As Integer
    Dim moveContent As Boolean
     
    instance.MoveColumn(fromIndex, toIndex, columnCount, moveContent)
    public virtual void MoveColumn( 
       int fromIndex,
       int toIndex,
       int columnCount,
       bool moveContent
    )

    Parameters

    fromIndex
    Current index of the column to move
    toIndex
    New index of the column after the move
    columnCount
    Column count
    moveContent
    Whether to move the content
    See Also