Spread Windows Forms 7.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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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