GrapeCity.Excel Namespace > ExcelWorksheetCollection Class : Insert Method |
'Declaration Public Sub Insert( _ ByVal index As Integer, _ ByVal worksheet As IExcelWorksheet _ )
'Usage Dim instance As ExcelWorksheetCollection Dim index As Integer Dim worksheet As IExcelWorksheet instance.Insert(index, worksheet)
public void Insert( int index, IExcelWorksheet worksheet )
Exception | Description |
---|---|
System.ArgumentNullException | worksheet is a null reference (Nothing in Visual Basic) |
Target Platforms: Windows Server 2012, Windows RT