PowerTools SPREAD for Windows Forms 10.0J
EnhancedSolidLine コンストラクタ


線の色。
線の幅。
線の破線タイプ
線の先端形状
線の結合タイプ
線の始点にある矢印のタイプ
線の始点にある矢印のサイズ
線の終点にある矢印のタイプ
線の終点にある矢印のサイズ
指定した色と幅を使用して、線を作成します。
構文
'Declaration
 
Public Function New( _
   ByVal color As Color, _
   ByVal width As Single, _
   ByVal compoundType As CompoundType, _
   ByVal dashType As DashType, _
   ByVal capType As CapType, _
   ByVal joinType As JoinType, _
   ByVal beginArrowType As ArrowType, _
   ByVal endArrowType As ArrowType, _
   ByVal beginArrowSize As Integer, _
   ByVal endArrowSize As Integer _
)
'使用法
 
Dim color As Color
Dim width As Single
Dim compoundType As CompoundType
Dim dashType As DashType
Dim capType As CapType
Dim joinType As JoinType
Dim beginArrowType As ArrowType
Dim endArrowType As ArrowType
Dim beginArrowSize As Integer
Dim endArrowSize As Integer
 
Dim instance As New EnhancedSolidLine(color, width, compoundType, dashType, capType, joinType, beginArrowType, endArrowType, beginArrowSize, endArrowSize)

パラメータ

color
線の色。
width
線の幅。
compoundType
dashType
線の破線タイプ
capType
線の先端形状
joinType
線の結合タイプ
beginArrowType
線の始点にある矢印のタイプ
endArrowType
線の始点にある矢印のサイズ
beginArrowSize
線の終点にある矢印のタイプ
endArrowSize
線の終点にある矢印のサイズ
例外
例外説明
System.ArgumentOutOfRangeExceptionwidthが0以下であるか、3を超えています。
解説
幅はポイント単位で測定されます。
次のサンプルコードは、始点と終点に矢印が付いた線を作成します。
FarPoint.Win.Chart.EnhancedSolidLine eh = new FarPoint.Win.Chart.EnhancedSolidLine(System.Drawing.Color.Green, 1, FarPoint.Win.Chart.CompoundType.Double, FarPoint.Win.Chart.DashType.Dash, FarPoint.Win.Chart.CapType.Flat, FarPoint.Win.Chart.JoinType.Round, FarPoint.Win.Chart.ArrowType.Arrow, FarPoint.Win.Chart.ArrowType.OpenArrow, 1, 2);
FarPoint.Win.Chart.LineSeries series1 = new FarPoint.Win.Chart.LineSeries();
series1.PointMarker = new FarPoint.Win.Chart.BuiltinMarker(FarPoint.Win.Chart.MarkerShape.Circle, 7.0f);
series1.PointFill = new FarPoint.Win.Chart.GradientFill(System.Drawing.Color.Coral, System.Drawing.Color.Crimson);
series1.PointBorder = new FarPoint.Win.Chart.SolidLine(System.Drawing.Color.Yellow);
series1.LineBorder = eh;         
series1.Values.Add(8.0);
series1.Values.Add(12.0);
series1.Values.Add(14.0);
series1.Values.Add(15.0);
FarPoint.Win.Chart.YPlotArea plotArea = new FarPoint.Win.Chart.YPlotArea();
plotArea.Location = new System.Drawing.PointF(0.2f, 0.2f);
plotArea.Size = new System.Drawing.SizeF(0.6f, 0.6f);
plotArea.Series.Add(series1);
FarPoint.Win.Chart.LabelArea labelArea = new FarPoint.Win.Chart.LabelArea();
labelArea.Location = new System.Drawing.PointF(0.5f, 0.02f);
labelArea.AlignmentX = 0.5f;
labelArea.AlignmentY = 0.0f;
labelArea.Text = "Chart";
FarPoint.Win.Chart.ChartModel model = new FarPoint.Win.Chart.ChartModel();
model.LabelAreas.Add(labelArea);
model.PlotAreas.Add(plotArea);
FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart();
chart.Size = new Size(200, 200);
chart.Location = new Point(100, 100);
chart.Model = model;
fpSpread1.Sheets[0].Charts.Add(chart);
Dim eh As New FarPoint.Win.Chart.EnhancedSolidLine(System.Drawing.Color.Green, 1, FarPoint.Win.Chart.CompoundType.Double, FarPoint.Win.Chart.DashType.Dash, FarPoint.Win.Chart.CapType.Flat, FarPoint.Win.Chart.JoinType.Round, FarPoint.Win.Chart.ArrowType.Arrow, FarPoint.Win.Chart.ArrowType.OpenArrow, 1, 2)
Dim series1 As New FarPoint.Win.Chart.LineSeries()
series1.PointMarker = New FarPoint.Win.Chart.BuiltinMarker(FarPoint.Win.Chart.MarkerShape.Circle, 7.0F)
series1.PointFill = New FarPoint.Win.Chart.GradientFill(System.Drawing.Color.Coral, System.Drawing.Color.Crimson)
series1.PointBorder = New FarPoint.Win.Chart.SolidLine(System.Drawing.Color.Yellow)
series1.LineBorder = eh
series1.Values.Add(8.0)
series1.Values.Add(12.0)
series1.Values.Add(14.0)
series1.Values.Add(15.0)
Dim plotArea As New FarPoint.Win.Chart.YPlotArea()
plotArea.Location = New System.Drawing.PointF(0.2F, 0.2F)
plotArea.Size = New System.Drawing.SizeF(0.6F, 0.6F)
plotArea.Series.Add(series1)
Dim labelArea As New FarPoint.Win.Chart.LabelArea()
labelArea.Location = New System.Drawing.PointF(0.5F, 0.02F)
labelArea.AlignmentX = 0.5F
labelArea.AlignmentY = 0.0F
labelArea.Text = "Chart"
Dim model As New FarPoint.Win.Chart.ChartModel()
model.LabelAreas.Add(labelArea)
model.PlotAreas.Add(plotArea)
Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart()
chart.Size = New Size(200, 200)
chart.Location = New Point(100, 100)
chart.Model = model
FpSpread1.Sheets(0).Charts.Add(chart)
参照

EnhancedSolidLine クラス
EnhancedSolidLine メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.