GrapeCity.Xaml.SpreadSheet.Data
PlotArea Property
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > SpreadChart Class : PlotArea Property
Gets or sets the plot area of chart.
Syntax
'Declaration
 
Public Property PlotArea As PlotArea
'Usage
 
Dim instance As SpreadChart
Dim value As PlotArea
 
instance.PlotArea = value
 
value = instance.PlotArea
public PlotArea PlotArea {get; set;}

Property Value

The plot area of chart.
Example
This example sets the PlotArea property.
private double strokeThickness;
private Brush stroke;
private Brush fillBrush;

strokeThickness = 2;
stroke = new SolidColorBrush(Windows.UI.Colors.Green);
fillBrush = new SolidColorBrush(Windows.UI.Colors.Red);

GrapeCity.Xaml.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0, 0, 200, 200);
gcSpreadSheet1.ActiveSheet.SetArray(0, 0, new object[,] { { 1 }, { 2 }, { 3 }, { 4 }, { 5 }, { 6 }, { 7 }, { 8 }, { 9 }, { 10 } });

chart.PlotArea.Stroke = stroke;
chart.PlotArea.StrokeThickness = strokeThickness;
chart.PlotArea.StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.LongDash;
chart.PlotArea.Fill = fillBrush;

gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Private strokeThickness As Double
Private stroke As Brush
Private fillBrush As Brush

strokeThickness = 2
stroke = New SolidColorBrush(Windows.UI.Colors.Green)
fillBrush = New SolidColorBrush(Windows.UI.Colors.Red)

Dim chart As New GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0, 0, 200, 200)
GcSpreadSheet1.ActiveSheet.SetArray(0, 0, New Object(,) {{1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}})

chart.PlotArea.Stroke = stroke
chart.PlotArea.StrokeThickness = strokeThickness
chart.PlotArea.StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.LongDash
chart.PlotArea.Fill = fillBrush
GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
See Also

Reference

SpreadChart Class
SpreadChart Members