Back to Devexpress

SparklineGroup.Sparklines Property

officefileapi-devexpress-dot-spreadsheet-dot-sparklinegroup-394d3826.md

latest4.2 KB
Original Source

SparklineGroup.Sparklines Property

Provides access to the collection of sparklines contained in the sparkline group.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
SparklineCollection Sparklines { get; }
vb
ReadOnly Property Sparklines As SparklineCollection

Property Value

TypeDescription
SparklineCollection

A SparklineCollection object that is a collection of sparklines.

|

Remarks

A sparkline group consists of one or more sparkline charts that are stored within the SparklineCollection collection returned by the Sparklines property. Use members of the SparklineCollection object to manage the group’s set of sparklines. For example, you can add a new sparkline (SparklineCollection.Add), remove an existing sparkline (SparklineCollection.Remove or SparklineCollection.RemoveAt), access an individual Sparkline object by its index in the collection and change its location (Sparkline.SetPosition) or move it to the other sparkline group (Sparkline.MoveTo).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Sparklines property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/SparklineActions.cs#L40

csharp
// Rearrange sparklines by grouping the second and fourth sparklines together and changing the group type to "Column".
Sparkline sparklineG5 = lineGroup.Sparklines[1];
Sparkline sparklineG7 = lineGroup.Sparklines[3];

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/SparklineActions.vb#L39

vb
' Rearrange sparklines by grouping the second and fourth sparklines together and changing the group type to "Column".
Dim sparklineG5 As Sparkline = lineGroup.Sparklines(1)
Dim sparklineG7 As Sparkline = lineGroup.Sparklines(3)

See Also

Spreadsheet Document API Examples

SparklineGroup Interface

SparklineGroup Members

DevExpress.Spreadsheet Namespace