Exemple #1
0
 /// <summary>
 /// Legend를 사용합니다.
 /// </summary>
 /// <param name="chart"></param>
 /// <param name="location"></param>
 /// <param name="visibleCheckBox"></param>
 public static void InitLegend(BTChart chart, LegendAlignments location, LegendStyles style, bool visibleCheckBox)
 {
     chart.Legend.Visible            = true;
     chart.Legend.Alignment          = location;
     chart.Legend.LegendStyle        = style;
     chart.Legend.TextStyle          = LegendTextStyles.Plain;
     chart.Legend.Font.Name          = "Tahoma";
     chart.Legend.Font.Size          = 7;
     chart.Legend.Symbol.Pen.Visible = false;
     chart.Legend.Symbol.Width       = 10;
     chart.Legend.Symbol.WidthUnits  = LegendSymbolSize.Pixels;
     chart.Legend.TopLeftPos         = 0;
     chart.Legend.CheckBoxes         = visibleCheckBox;
     chart.Legend.Shadow.Visible     = false;
     chart.Legend.Brush.Color        = chart.Panel.Color;
     chart.Legend.Pen.Visible        = false;
     chart.Legend.Font.Size          = 7;
 }
Exemple #2
0
 public void LegendInitialize(Steema.TeeChart.TChart objChart, LegendStyles legendStyle,
                              LegendTextStyles legendTextStyle, bool VisibleCheckBox, LegendAlignments p_legendAlignments)
 {
     objChart.Legend.Visible            = true;
     objChart.Legend.Alignment          = p_legendAlignments;
     objChart.Legend.LegendStyle        = legendStyle;
     objChart.Legend.TextStyle          = legendTextStyle;
     objChart.Legend.Font.Name          = "Arial";
     objChart.Legend.Font.Size          = 8;
     objChart.Legend.Symbol.Pen.Visible = false;
     objChart.Legend.Symbol.Width       = 10;
     objChart.Legend.Symbol.WidthUnits  = LegendSymbolSize.Pixels;
     objChart.Legend.TopLeftPos         = 0;
     objChart.Legend.CheckBoxes         = VisibleCheckBox;
     objChart.Legend.Shadow.Visible     = false;
     objChart.Legend.Brush.Color        = objChart.Panel.Color;
     objChart.Legend.Pen.Visible        = false;
     objChart.Legend.Pen.Color          = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224)));
 }