GrapeCity.Xaml.SpreadSheet.Data
GetDataPoint Method
Example 


Index of the point.
Gets the data point.
Syntax
'Declaration
 
Public Function GetDataPoint( _
   ByVal pointIndex As Integer _
) As DataPoint
'Usage
 
Dim instance As SpreadDataSeries
Dim pointIndex As Integer
Dim value As DataPoint
 
value = instance.GetDataPoint(pointIndex)
public DataPoint GetDataPoint( 
   int pointIndex
)

Parameters

pointIndex
Index of the point.
Example
This example uses the GetDataPoint method.
GrapeCity.Xaml.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.ColumnStacked, 0, 0, 200, 200);
// only for column, bar, or pie charts.
//3D column, bar, or pie charts do not support the border property.
GrapeCity.Xaml.SpreadSheet.Data.SpreadDataSeries ds = new GrapeCity.Xaml.SpreadSheet.Data.SpreadDataSeries();
ds.Values.Add(4);
ds.Values.Add(7);
ds.Values.Add(6);
ds.Values.Add(10);
ds.Values.Add(4);

ds.GetDataPoint(2).Fill = new SolidColorBrush(Windows.UI.Colors.Red);
ds.GetDataPoint(2).Stroke = new SolidColorBrush(Windows.UI.Colors.Blue);
ds.GetDataPoint(2).StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash;
ds.GetDataPoint(2).StrokeThickness = 2;
chart.DataSeries.Add(ds);
gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
Dim chart As New GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.ColumnStacked, 0, 0, 200, 200)
' only for column, bar, or pie charts.
'3D column, bar, or pie charts do not support the border property.
Dim ds As New GrapeCity.Xaml.SpreadSheet.Data.SpreadDataSeries()
ds.Values.Add(4)
ds.Values.Add(7)
ds.Values.Add(6)
ds.Values.Add(10)
ds.Values.Add(4)

ds.GetDataPoint(2).Fill = New SolidColorBrush(Windows.UI.Colors.Red)
ds.GetDataPoint(2).Stroke = New SolidColorBrush(Windows.UI.Colors.Blue)
ds.GetDataPoint(2).StrokeDashType = GrapeCity.Xaml.SpreadSheet.Data.StrokeDashType.Dash
ds.GetDataPoint(2).StrokeThickness = 2
chart.DataSeries.Add(ds)
GcSpreadSheet1.ActiveSheet.Charts.Add(chart)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

SpreadDataSeries Class
SpreadDataSeries Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options