...
Description |
---|
Excerpt |
---|
Creates a new worksheet at a specified position in the workbook. |
Signature | ||||
---|---|---|---|---|
| ||||
public Worksheet CreateWorksheet(System.String name, int position)
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Function CreateWorksheet(ByVal name As String, ByVal position As Integer) As Worksheet
{signature}
{parameters}
{param:name}Name for the new worksheet.{param}
{param:position}The 0\-based position at which to insert the worksheet. If {{position}} is greater than [Worksheets.Count|Worksheets.Count], an exception will be thrown.{param}
{returns}A [Worksheet|Worksheet] object representing the worksheet created.{returns}
{example}{code:csharp|title=C#} |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
Name for the new worksheet. |
Param | ||||
---|---|---|---|---|
| ||||
The 0-based position at which to insert the worksheet. If |
Returns |
---|
A Worksheet object representing the worksheet created. |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|