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
Visual Basic (Usage) | Copy Code |
---|
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) |
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
Remarks
Example
This example moves multiple columns.
C# | Copy Code |
---|
FpSpread1.Sheets[0].MoveColumn(0, 5, 2, true); |
Visual Basic | Copy Code |
---|
FpSpread1.Sheets(0).MoveColumn(0, 5, 2, True) |
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also