Spread WPF Documentation
Fill Property (SpreadChartElement)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > SpreadChartElement Class : Fill Property
Gets or sets the brush that specifies how the element's interior is painted.
Syntax
'Declaration
 
Public Property Fill As System.Windows.Media.Brush
'Usage
 
Dim instance As SpreadChartElement
Dim value As System.Windows.Media.Brush
 
instance.Fill = value
 
value = instance.Fill
public System.Windows.Media.Brush Fill {get; set;}

Property Value

A brush that describes how the element's interior is painted.
Example
This example sets the Fill property.
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)
See Also

Reference

SpreadChartElement Class
SpreadChartElement Members