GrapeCity.Excel Namespace > ExcelWorksheetCollection Class : Insert Method |
'Declaration Public Sub Insert( _ ByVal index As System.Integer, _ ByVal worksheet As IExcelWorksheet _ )
'Usage Dim instance As ExcelWorksheetCollection Dim index As System.Integer Dim worksheet As IExcelWorksheet instance.Insert(index, worksheet)
public void Insert( System.int index, IExcelWorksheet worksheet )
Exception | Description |
---|---|
System.ArgumentNullException | worksheet is a null reference (Nothing in Visual Basic) |
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6