GrapeCity.Windows.SpreadSheet.Data Namespace > SpreadDataSeries Class : DataLabelSettings Property |
'Declaration Public Property DataLabelSettings As DataLabelSettings
'Usage Dim instance As SpreadDataSeries Dim value As DataLabelSettings instance.DataLabelSettings = value value = instance.DataLabelSettings
public DataLabelSettings DataLabelSettings {get; set;}
GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries aseries = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries(); aseries.Name = "1234"; aseries.Values.Add(2); aseries.Values.Add(4); aseries.Values.Add(3); aseries.Values.Add(5); aseries.Fill = Brushes.Red; aseries.ChartType = GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked; aseries.DataLabelSettings = new GrapeCity.Windows.SpreadSheet.Data.DataLabelSettings() { ShowValue = true, ShowBubbleSize = true }; aseries.DataLabelStyle.Fill = Brushes.Green; GrapeCity.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart(); chart.DataSeries.Add(aseries); chart.Name = "name1"; this.gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim aseries As New GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries() aseries.Name = "1234" aseries.Values.Add(2) aseries.Values.Add(4) aseries.Values.Add(3) aseries.Values.Add(5) aseries.Fill = Brushes.Red aseries.ChartType = GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked aseries.DataLabelSettings = New GrapeCity.Windows.SpreadSheet.Data.DataLabelSettings() With {.ShowPointValue = True, .ShowBubbleSize = True, .ShowXValue = True} aseries.DataLabelStyle.Fill = Brushes.Green Dim chart As New GrapeCity.Windows.SpreadSheet.Data.SpreadChart() chart.DataSeries.Add(aseries) chart.Name = "name1" GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)