Skip to main content
A newer version of this page is available. .

XlSparklineGroup(XlCellRange, XlCellRange) Constructor

Creates a line sparkline group for the specified data and location.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

public XlSparklineGroup(
    XlCellRange dataRange,
    XlCellRange location
)

Parameters

Name Type Description
dataRange XlCellRange

A XlCellRange object that specifies the cell range containing the source data for the group.

location XlCellRange

A XlCellRange object that specifies the cell range where the sparkline group should be located.

Example

// Create a group of line sparklines.
XlSparklineGroup group = new XlSparklineGroup(XlCellRange.FromLTRB(1, 1, 4, 6), XlCellRange.FromLTRB(5, 1, 5, 6));
// Set the sparkline weight.
group.LineWeight = 1.25;
// Display data markers on the sparklines.
group.DisplayMarkers = true;
sheet.SparklineGroups.Add(group);
See Also