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 after the last existing worksheet in this workbook.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Creates a new chartsheet after the last existing worksheet in this workbook.{excerpt}
{signature:C#}
 public Chartsheet CreateChartsheet(ChartType type, System.String name)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function CreateChartsheet(ByVal type As ChartType, ByVal name As String) 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.

Returns

A Chartsheet object representing the chartsheet created.

|ChartType.Bar#Clustered].{param}
{param:name}Name for the new chartsheet.{param}
{returns}A [Chartsheet|Chartsheet] object representing the chartsheet created.{returns}
{example}{code:csharp|title=C#}
ChartSheet cs = 
     sheets.CreateChartsheet(ChartType.Bar.Clustered, "NewSheet");
{code}
{code:vb.net
|title=vb.net
}
Dim cs As ChartSheet = _
     sheets.CreateChartsheet(ChartType.Bar.Clustered, "NewSheet"){code}

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