Moves the column or columns to a specified location.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim column As Integer
Dim count As Integer
Dim toColumn As Integer
instance.MoveColumn(column, count, toColumn) |
Parameters
- column
- Column index at which to start the move (first column)
- count
- Number of columns to move
- toColumn
- Destination before which to copy the range of columns
Example
This example uses the MoveColumn method.
C# | Copy Code |
---|
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack) return;
FpSpread1.Sheets[0].Cells[0, 0].Text = "testing";
}
protected void Button1_Click(object sender, EventArgs e)
{
FpSpread1.Sheets[0].MoveColumn(0, 1, 2);
} |
VB.NET | Copy Code |
---|
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If (IsPostBack) Then
Return
End If
FpSpread1.Sheets(0).Cells(0, 0).Text = "testing"
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
FpSpread1.Sheets(0).MoveColumn(0, 1, 2)
End Sub |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also