Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / MarkerType Enumeration
Example Example


In This Topic
    MarkerType Enumeration
    In This Topic
    Specifies the data point marker type.
    Syntax
    'Declaration
     
    Public Enum MarkerType 
       Inherits System.Enum
    'Usage
     
    Dim instance As MarkerType
    public enum MarkerType : System.Enum 
    Members
    MemberDescription
    AutomaticThe marker type is generated automatically.
    BoxSpecifies the box type.
    CircleSpecifies the circle type.
    CrossSpecifies the cross type.
    DiagonalCrossSpecifies the diagonal cross type.
    DiamondSpecifies the diamond type.
    DotSpecifies the dot type.
    NoneSpecifies none.
    Star4Specifies the star4 type.
    Star8Specifies the star8 type.
    TriangleSpecifies the triangle type.
    Example
    This example sets the MarkerType enumeration.
    //only for line charts.
    GrapeCity.Xaml.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Line, 0, 0, 200, 200);
    
    GrapeCity.Xaml.SpreadSheet.Data.SpreadDataSeries ds = new GrapeCity.Xaml.SpreadSheet.Data.SpreadDataSeries();
    ds.Values.Add(4);
    ds.Values.Add(7);
    ds.Values.Add(6);
    ds.Values.Add(10);
    ds.Values.Add(4);
    //dataSeries level
    ds.MarkerSize = new Size(15, 15);
    ds.MarkerType = GrapeCity.Xaml.SpreadSheet.Data.MarkerType.Diamond;
    ds.DataMarkerStyle.Fill = new SolidColorBrush(Windows.UI.Colors.Green);
    ds.DataMarkerStyle.Stroke = new SolidColorBrush(Windows.UI.Colors.Blue);
    ds.DataMarkerStyle.StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash;
    ds.DataMarkerStyle.StrokeThickness = 2;
    //data marker level
    ds.GetDataMarker(2).Fill = new SolidColorBrush(Windows.UI.Colors.Orange);
    ds.GetDataMarker(2).Stroke = new SolidColorBrush(Windows.UI.Colors.Yellow);
    ds.GetDataMarker(2).StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash;
    ds.GetDataMarker(2).StrokeThickness = 4;
    ds.GetDataMarker(2).MarkerSize = new Size(20, 20);
    chart.ChartType = GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Scatter;
    chart.DataSeries.Add(ds);
    gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
    Dim chart As New GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Line, 0, 0, 200, 200)
    
    Dim ds As New GrapeCity.Xaml.SpreadSheet.Data.SpreadDataSeries()
    ds.Values.Add(4)
    ds.Values.Add(7)
    ds.Values.Add(6)
    ds.Values.Add(10)
    ds.Values.Add(4)
    'dataSeries level
    ds.MarkerSize = New Size(15, 15)
    ds.MarkerType = GrapeCity.Xaml.SpreadSheet.Data.MarkerType.Diamond
    ds.DataMarkerStyle.Fill = New SolidColorBrush(Windows.UI.Colors.Green)
    ds.DataMarkerStyle.Stroke = New SolidColorBrush(Windows.UI.Colors.Blue)
    ds.DataMarkerStyle.StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash
    ds.DataMarkerStyle.StrokeThickness = 2
    'data marker level
    ds.GetDataMarker(2).Fill = New SolidColorBrush(Windows.UI.Colors.Orange)
    ds.GetDataMarker(2).Stroke = New SolidColorBrush(Windows.UI.Colors.Yellow)
    ds.GetDataMarker(2).StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash
    ds.GetDataMarker(2).StrokeThickness = 4
    ds.GetDataMarker(2).MarkerSize = New Size(20, 20)
    chart.ChartType = GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.Scatter
    chart.DataSeries.Add(ds)
    GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             GrapeCity.Xaml.SpreadSheet.Data.MarkerType

    See Also