Spread Windows Forms 12.0 Product Documentation
SpreadChart Constructor(Type,ChartViewType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Chart Namespace > SpreadChart Class > SpreadChart Constructor : SpreadChart Constructor(Type,ChartViewType)
Type of the series.
Type of the view.
Initializes a new instance of the SpreadChart class.
Syntax
'Declaration
 
Public Function New( _
   ByVal seriesType As Type, _
   ByVal viewType As ChartViewType _
)
'Usage
 
Dim seriesType As Type
Dim viewType As ChartViewType
 
Dim instance As New SpreadChart(seriesType, viewType)
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.
FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart(typeof(FarPoint.Win.Chart.BarSeries),FarPoint.Win.Chart.ChartViewType.View2D);
Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart(GetType(FarPoint.Win.Chart.BarSeries), FarPoint.Win.Chart.ChartViewType.View2D)
See Also

Reference

SpreadChart Class
SpreadChart Members
Overload List