Spread Windows Forms 7.0 Product Documentation
SpreadChart Constructor(Type,ChartViewType)
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Chart Namespace > SpreadChart Class > SpreadChart Constructor : SpreadChart Constructor(Type,ChartViewType)


seriesType
Type of the series.
viewType
Type of the view.

Glossary Item Box

Initializes a new instance of the SpreadChart class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal seriesType As Type, _
   ByVal viewType As ChartViewType _
)
Visual Basic (Usage)Copy Code
Dim seriesType As Type
Dim viewType As ChartViewType
 
Dim instance As New SpreadChart(seriesType, viewType)
C# 
public SpreadChart( 
   Type seriesType,
   ChartViewType viewType
)

Parameters

seriesType
Type of the series.
viewType
Type of the view.

Remarks

The seriesType parameter indicates which type of chart will be added. The viewType parameter is the view type of the chart (2D or 3D).

Example

This example creates a chart.
C#Copy Code
FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart(typeof(FarPoint.Win.Chart.BarSeries),FarPoint.Win.Chart.ChartViewType.View2D);
Visual BasicCopy Code
Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart(GetType(FarPoint.Win.Chart.BarSeries), FarPoint.Win.Chart.ChartViewType.View2D)

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.