Spread Windows Forms 6.0 Product Documentation
Move Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class : Move Method


from
current index of SheetView
to
new index for SheetView

Glossary Item Box

Moves the specified SheetView to a different index in the collection.

Syntax

Visual Basic (Declaration) 
Public Sub Move( _
   ByVal from As Integer, _
   ByVal to As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetViewCollection
Dim from As Integer
Dim to As Integer
 
instance.Move(from, to)
C# 
public void Move( 
   int from,
   int to
)

Parameters

from
current index of SheetView
to
new index for SheetView

Example

This example moves a sheet from the specified location.
C#Copy Code
fpSpread1.Sheets.Count = 5; 
FarPoint.Win.Spread.SheetViewCollection sheet; 
sheet = fpSpread1.Sheets; 
sheet.Move(0, 2);
Visual BasicCopy Code
FpSpread1.Sheets.Count = 5
Dim sheet As FarPoint.Win.Spread.SheetViewCollection
sheet = FpSpread1.Sheets
sheet.Move(0, 2)

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.