See Also

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

sheet
The sheet to insert the newly created worksheet before.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

AddBefore Method

SpreadsheetGear Namespace > IWorksheets Interface : AddBefore Method

Creates a new worksheet and inserts it before the specified sheet.

[Visual Basic]
Overridable Function AddBefore( _    ByVal sheet As ISheet _ ) As IWorksheet
[C#]
virtual IWorksheet AddBefore(    ISheet sheet );
[C++]
virtual IWorksheet* AddBefore(    ISheet* sheet )
[C++/CLI]
virtual IWorksheet^ AddBefore(    ISheet^ sheet )

Parameters

sheet
The sheet to insert the newly created worksheet before.

Return Type

The newly created worksheet.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.