Spread for ASP.NET 7.0 Product Documentation
MoveColumn(Int32,Int32,Int32) Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : MoveColumn(Int32,Int32,Int32) Method


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

Glossary Item Box

Moves the column or columns to a specified location.

Syntax

Visual Basic (Declaration) 
Public Sub MoveColumn( _
   ByVal column As Integer, _
   ByVal count As Integer, _
   ByVal toColumn As Integer _
) 
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)
C# 
public void MoveColumn( 
   int column,
   int count,
   int 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.NETCopy 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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.