Spread Windows Forms 7.0 Product Documentation
MarkerShape Enumeration
Example  See Also  Support Options
FarPoint.Win.Chart Assembly > FarPoint.Win.Chart Namespace : MarkerShape Enumeration


Glossary Item Box

Specifies the shape of a data point in a point series chart.

Syntax

Visual Basic (Declaration) 
Public Enum MarkerShape 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As MarkerShape
C# 
public enum MarkerShape : System.Enum 

Members

MemberDescription
CircleDisplays a circle
DashDisplays a dash
DiamondDisplays a diamond
DotDisplays a dot
PlusDisplays a plus
SquareDisplays a square
StarDisplays a star
TriangleDisplays a triangle
XDisplays an X

Example

This example sets a marker shape.
C#Copy Code
BarSeries series0 = new BarSeries();
series0.Values.Add(8.0);
series0.Values.Add(4.0);
series0.Values.Add(2.0);
series0.Values.Add(1.0);
LineSeries series1 = new LineSeries();
series1.PointMarker = new BuiltinMarker(MarkerShape.Circle, 7.0f);
series1.Values.Add(8.0);
series1.Values.Add(12.0);
series1.Values.Add(14.0);
series1.Values.Add(15.0);
YPlotArea plotArea = new YPlotArea();
plotArea.Location = new PointF(0.2f, 0.2f);
plotArea.Size = new SizeF(0.6f, 0.6f);
plotArea.series.Add(series0);
plotArea.series.Add(series1);
LabelArea labelArea = new LabelArea();
labelArea.Location = new PointF(0.5f, 0.02f);
labelArea.AlignmentX = 0.5f;
labelArea.AlignmentY = 0.0f;
labelArea.Text = "Pareto Chart";
ChartModel model = new ChartModel();
model.LabelAreas.Add(labelArea);
model.PlotAreas.Add(plotArea);
Chart2DControl1.Model = model;
Visual BasicCopy Code
Dim series0 As New FarPoint.Win.Chart.BarSeries()
series0.Values.Add(8.0)
series0.Values.Add(4.0)
series0.Values.Add(2.0)
series0.Values.Add(1.0)
Dim series1 As New FarPoint.Win.Chart.LineSeries()
series1.PointMarker = New FarPoint.Win.Chart.BuiltinMarker(FarPoint.Win.Chart.MarkerShape.Circle, 7.0F)
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 PointF(0.2F, 0.2F)
plotArea.Size = New SizeF(0.6F, 0.6F)
plotArea.series.Add(series0)
plotArea.series.Add(series1)
Dim labelArea As New FarPoint.Win.Chart.LabelArea()
labelArea.Location = New PointF(0.5F, 0.02F)
labelArea.AlignmentX = 0.5F
labelArea.AlignmentY = 0.0F
labelArea.Text = "Pareto Chart"
Dim model As New FarPoint.Win.Chart.ChartModel()
model.LabelAreas.Add(labelArea)
model.PlotAreas.Add(plotArea)
Chart2DControl1.Model = model

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Chart.MarkerShape

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.