NativeExcel for .Net Developer's Reference

IWorksheet.Previous Property

Returns an IWorksheet interface that represents the previous worksheet.

[Visual Basic]
PropertyReadOnlyPreviousAsIWorksheet
[C#]
IWorksheetPrevious{get;}
[C++]
__propertyIWorksheet*get_Previous();
[JScript]
functiongetPrevious():IWorksheet

Property Value

IWorksheet interface.

Example

This example displays the name of the previous worksheet.

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

See Also

IWorksheet Interface | NativeExcel Namespace | Next Property