Version

MoveToIndex Method

Moves the worksheet to a new position in the owning workbook's collections of worksheets.
Syntax
public void MoveToIndex( 
   int index
)

Parameters

index
The new 0-based index to where the worksheet should be moved.
Exceptions
ExceptionDescription
System.InvalidOperationException The worksheet has previously been removed from its workbook.
System.ArgumentOutOfRangeExceptionindex is less than 0 or greater than or equal to the number of worksheets in the owning workbook.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also