GrapeCity.Xaml.SpreadSheet.Data
SeriesColor Property (SparklineSetting)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > SparklineSetting Class : SeriesColor Property
Gets or sets a value that specifies the color for each sparkline in this sparkline group.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property SeriesColor As Color
'Usage
 
Dim instance As SparklineSetting
Dim value As Color
 
instance.SeriesColor = value
 
value = instance.SeriesColor
[DefaultValue()]
public Color SeriesColor {get; set;}
Example
This example uses the SeriesColor property.
GrapeCity.Xaml.SpreadSheet.Data.CellRange cellr = new GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 1, 5);
GrapeCity.Xaml.SpreadSheet.Data.SparklineSetting ex = new GrapeCity.Xaml.SpreadSheet.Data.SparklineSetting();
ex.SeriesColor  = Windows.UI.Colors.Aquamarine; 
gcSpreadSheet1.Sheets[0].Cells[0, 0].Value = 2;
gcSpreadSheet1.Sheets[0].Cells[0, 1].Value = 5;
gcSpreadSheet1.Sheets[0].Cells[0, 2].Value = 4;
gcSpreadSheet1.Sheets[0].Cells[0, 3].Value = -1;
gcSpreadSheet1.Sheets[0].Cells[0, 4].Value = 3;
gcSpreadSheet1.Sheets[0].SetSparkline(0, 5, cellr, GrapeCity.Xaml.SpreadSheet.Data.DataOrientation.Horizontal, GrapeCity.Xaml.SpreadSheet.Data.SparklineType.Column, ex);         

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetSparkline(0, 5).ToString());
            gcSpreadSheet1.Sheets[0].RemoveSparkline(0, 5);            
        }
Dim cellr As New GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 1, 5)
Dim ex As New GrapeCity.Xaml.SpreadSheet.Data.SparklineSetting()
ex.SeriesColor = Windows.UI.Colors.Aquamarine
GcSpreadSheet1.Sheets(0).Cells(0, 0).Value = 2
GcSpreadSheet1.Sheets(0).Cells(0, 1).Value = 5
GcSpreadSheet1.Sheets(0).Cells(0, 2).Value = 4
GcSpreadSheet1.Sheets(0).Cells(0, 3).Value = -1
GcSpreadSheet1.Sheets(0).Cells(0, 4).Value = 3
GcSpreadSheet1.Sheets(0).SetSparkline(0, 5, cellr, GrapeCity.Xaml.SpreadSheet.Data.DataOrientation.Horizontal, GrapeCity.Xaml.SpreadSheet.Data.SparklineType.Column, ex)

Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
        ListBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetSparkline(0, 5).ToString())
        gcSpreadSheet1.Sheets(0).RemoveSparkline(0, 5)
    End Sub
See Also

Reference

SparklineSetting Class
SparklineSetting Members