/// <summary> /// Initializes a new instance of the MicroChart class. /// </summary> public MicroChart() { this.SetStyle(ControlStyles.Selectable, false); _MicroChart = new MicroChartItem(); _MicroChart.TextVisible = false; _MicroChart.MouseOverDataPointChanged += new EventHandler(MicroChartMouseOverDataPointChanged); this.HostItem = _MicroChart; }
public StartControl() { InitializeComponent(); // Add self-updating chart to the sales tile MicroChartItem chart = new MicroChartItem(); chart.ChartType = eMicroChartType.Column; chart.ChartWidth = salesTile.TileSize.Width - 26; chart.ChartHeight = salesTile.TileSize.Height - 30; chart.DataPoints = GetRandomDataPoints(false, 12); chart.TooltipValueFormatString = "C"; // Currency format for tooltips chart.ColumnChartStyle.PositiveBarColor = Color.White; salesTile.SubItems.Add(chart); }
/// <summary> /// Copies the MicroChartItem specific properties to new instance of the item. /// </summary> /// <param name="copy">New MicroChartItem instance.</param> internal void InternalCopyToItem(MicroChartItem copy) { CopyToItem(copy); }
/// <summary> /// Returns copy of the item. /// </summary> public override BaseItem Copy() { MicroChartItem objCopy = new MicroChartItem(m_Name); this.CopyToItem(objCopy); return objCopy; }