NativeExcel for .Net Developer's Reference

IWorksheet.Next Property

Returns an IWorksheet interface that represents the next worksheet.

[Visual Basic]
PropertyReadOnlyNextAsIWorksheet
[C#]
IWorksheetNext{get;}
[C++]
__propertyIWorksheet*get_Next();
[JScript]
functiongetNext():IWorksheet

Property Value

IWorksheet interface.

Example

This example displays the name of the next worksheet.

[C#]
if (sheet.Next != null) {
   System.Console.WriteLine(sheet.Next.Name); 
}   
[VisualBasic]
If Not sheet.Next Is Nothing Then
   System.Console.WriteLine(sheet.Next.Name) 
End If
[C++]
if (sheet->Next != null) {
   System::Console::WriteLine(sheet->Next->Name); 
}   

See Also

IWorksheet Interface | NativeExcel Namespace | Previous Property