Spread Windows Forms 10.0 Product Documentation
SpreadChart Constructor(Type,ChartViewType,Point,Size)
Example 


Type of the series.
Type of the view.
The location.
The size.
Initializes a new instance of the SpreadChart class.
Syntax
'Declaration
 
Public Function New( _
   ByVal seriesType As Type, _
   ByVal viewType As ChartViewType, _
   ByVal location As Point, _
   ByVal size As Size _
)
'Usage
 
Dim seriesType As Type
Dim viewType As ChartViewType
Dim location As Point
Dim size As Size
 
Dim instance As New SpreadChart(seriesType, viewType, location, size)
public SpreadChart( 
   Type seriesType,
   ChartViewType viewType,
   Point location,
   Size size
)

Parameters

seriesType
Type of the series.
viewType
Type of the view.
location
The location.
size
The size.
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). The location and size parameters specify the location and size (width and height) of the chart.
Example
This example creates a chart.
Point loc = new Point(20, 30);
Size size = new Size(300, 400);
FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart(typeof(FarPoint.Win.Chart.BarSeries),FarPoint.Win.Chart.ChartViewType.View2D, loc,size);
fpSpread1.Sheets[0].Charts.Add(chart);
Dim loc As New Point(20, 30)
Dim size As New Size(300, 400)
Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart(GetType(FarPoint.Win.Chart.BarSeries), FarPoint.Win.Chart.ChartViewType.View2D, loc, size)
FpSpread1.Sheets(0).Charts.Add(chart)
Requirements

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

See Also

Reference

SpreadChart Class
SpreadChart Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.