GrapeCity.Windows.SpreadSheet.Data Namespace > SpreadDataSeries Class : NegativeFill Property |
'Declaration Public Property NegativeFill As System.Windows.Media.Brush
'Usage Dim instance As SpreadDataSeries Dim value As System.Windows.Media.Brush instance.NegativeFill = value value = instance.NegativeFill
public System.Windows.Media.Brush NegativeFill {get; set;}
GrapeCity.Windows.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked, 0, 0, 200, 200); GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries ds = new GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries(); ds.Values.Add(4); ds.Values.Add(-7); ds.Values.Add(-6); ds.Values.Add(10); ds.Values.Add(4); ds.Fill = new SolidColorBrush(Colors.Green); ds.Stroke = new SolidColorBrush(Colors.Blue); ds.StrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash; ds.StrokeThickness = 2; ds.InvertIfNegative = true; ds.NegativeFill = new SolidColorBrush(Colors.Red); chart.DataSeries.Add(ds); gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim chart As New GrapeCity.Windows.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Windows.SpreadSheet.Data.SpreadChartType.ColumnStacked, 0, 0, 200, 200) Dim ds As New GrapeCity.Windows.SpreadSheet.Data.SpreadDataSeries() ds.Values.Add(4) ds.Values.Add(-7) ds.Values.Add(-6) ds.Values.Add(10) ds.Values.Add(4) ds.Fill = New SolidColorBrush(Colors.Green) ds.Stroke = New SolidColorBrush(Colors.Blue) ds.StrokeDashType = GrapeCity.Windows.SpreadSheet.Data.StrokeDashType.Dash ds.StrokeThickness = 2 ds.InvertIfNegative = True ds.NegativeFill = New SolidColorBrush(Colors.Red) chart.DataSeries.Add(ds) 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)