Spread Windows Forms 6.0 Product Documentation
MoveColumn(Int32,Int32,Boolean) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > MoveColumn Method : MoveColumn(Int32,Int32,Boolean) Method


fromIndex
Current index of the column to move
toIndex
New index of the column after the move
moveContent
Whether to move the content

Glossary Item Box

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 (Declaration) 
Public Overloads Overridable Sub MoveColumn( _
   ByVal fromIndex As Integer, _
   ByVal toIndex As Integer, _
   ByVal moveContent As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim fromIndex As Integer
Dim toIndex As Integer
Dim moveContent As Boolean
 
instance.MoveColumn(fromIndex, toIndex, moveContent)
C# 
public virtual void MoveColumn( 
   int fromIndex,
   int toIndex,
   bool moveContent
)

Parameters

fromIndex
Current index of the column to move
toIndex
New index of the column after the move
moveContent
Whether to move the content

Example

This example moves a column.
C#Copy Code
fpSpread1.Sheets[0].MoveColumn(0, 5, true);
Visual BasicCopy Code
FpSpread1.Sheets(0).MoveColumn(0, 5, True)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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