Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Creates a new worksheet at a specified position in the workbook.

Signature
C#
C#
 public Worksheet CreateWorksheet(System.String name, int position)
Signature
vb.net
vb.net
Public Function CreateWorksheet(ByVal name As String, ByVal position As Integer) As Worksheet
Parameters
Param
name
name

Name for the new worksheet.

Param
position
position

The 0-based position at which to insert the worksheet. If position is greater than Worksheets.Count, an exception will be thrown.

Returns

A Worksheet object representing the worksheet created.

Example
Code Block
csharp
csharp
titleC#
Worksheet ws = sheets.CreateWorksheet("NewSheet", 0);
Code Block
vb.net
vb.net
titlevb.net
Dim ws As Worksheet = sheets.CreateWorksheet("NewSheet", 0)