Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

Signature
C#C#
Wiki Markup
{description}
{excerpt}Creates a new Chartsheet at a specified position in the workbook.{excerpt}
{signature:C#}
 public Chartsheet CreateChartsheet(ChartType type, System.String name, int position)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function CreateChartsheet(ByVal type As ChartType, ByVal name As String, ByVal position As Integer) As Chartsheet
Parameters
Param
typetypeThe type of chart to create. Specify both a chart type and sub-type, for example,
{signature}
{parameters}
{param:type}The type of chart to create. Specify both a chart type and sub\-type, for example, [ChartType.Bar.Clustered
.
Param
namename

Name for the new chartsheet.

Param
positionposition

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

Returns

A Chartsheet object representing the chartsheet created.

|ChartType.Bar#Clustered].{param}
{param:name}Name for the new chartsheet.{param}
{param:position}The 0\-based position at which to insert the chartsheet. If {{position}} is greater than [Worksheets.Count|Worksheets.Count], an exception will be thrown.{param}
{returns}A [Chartsheet|Chartsheet] object representing the chartsheet created.{returns}
{example}{code:csharp|title=C#}
ChartSheet cs =
     sheets.CreateWorksheet(ChartType.Bar.Clustered, "NewSheet", 0);
{code}
{code:vb.net
|title=vb.net
}
Dim cs As ChartSheet = _
     sheets.CreateWorksheet(ChartType.Bar.Clustered, "NewSheet", 0){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle