SpreadsheetGear 2017
AddBefore Method (IWorksheets)






SpreadsheetGear Namespace > IWorksheets Interface : AddBefore Method
The sheet to insert the newly created worksheet before.
Creates a new worksheet and inserts it before the specified sheet.
Syntax
'Declaration
 
Function AddBefore( _
   ByVal sheet As ISheet _
) As IWorksheet
'Usage
 
Dim instance As IWorksheets
Dim sheet As ISheet
Dim value As IWorksheet
 
value = instance.AddBefore(sheet)
IWorksheet AddBefore( 
   ISheet sheet
)
function AddBefore( 
    sheet: ISheet
): IWorksheet; 
function AddBefore( 
   sheet : ISheet
) : IWorksheet;
IWorksheet* AddBefore( 
   ISheet* sheet
) 
IWorksheet^ AddBefore( 
   ISheet^ sheet
) 

Parameters

sheet
The sheet to insert the newly created worksheet before.

Return Value

The newly created worksheet.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IWorksheets Interface
IWorksheets Members
CopyAfter Method
CopyBefore Method
Delete Method
MoveAfter Method
MoveBefore Method
Add Method
AddAfter Method