public static void SetSeriesLineMarkerColor(this ExcelChart chart, int serieIdx, string color, int makrkerSize = 7, eMarkerStyle markerStyle = eMarkerStyle.Circle) { ExcelScatterChartSerie serie = (ExcelScatterChartSerie)chart.Series[serieIdx]; serie.LineColor = ColorTranslator.FromHtml(color); serie.MarkerColor = ColorTranslator.FromHtml(color); serie.MarkerLineColor = ColorTranslator.FromHtml(color); serie.MarkerSize = makrkerSize; serie.Marker = markerStyle; }
public HSLSlider() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor = Color.Transparent; // Initialize Colors _hsl = new HSL(0, 1, 1); _color = ColorManager.HSL_to_RGB(_hsl); _markerColor = SystemColors.ControlDarkDark; _markerStyle = eMarkerStyle.Triangle; _markerSize = 6; _markerLayout = eMarkerLayout.BottomOrRight; }
public static MarkerType ConvertMarkerStyleToMarkerType(eMarkerStyle markerStyle) { int marker_token = (int)markerStyle; return((MarkerType)marker_token); }