/// <summary> /// Initializes a new instance of the <see cref="MarkerStyleAttribute"/> class. /// </summary> public MarkerStyleAttribute(MarkerStyleType markerStyleType) { MarkerStyleType = markerStyleType; }
/// <summary> /// Initializes a new instance of the <see cref="MarkerStyleAttribute"/> class. /// </summary> public MarkerStyleAttribute(MarkerStyleType markerStyleType, string description) { MarkerStyleType = markerStyleType; Description = description; }
public static void SetMarkerForChartSerie(this SLChart chart, int serieIndex, MarkerStyleType markerStyle) { var dso = chart.GetDataSeriesOptions(serieIndex); switch (markerStyle) { case MarkerStyleType.Circle: dso.Marker.Symbol = MarkerStyleValues.Circle; break; case MarkerStyleType.None: dso.Marker.Symbol = MarkerStyleValues.None; break; default: break; } chart.SetDataSeriesOptions(serieIndex, dso); }