Skip to main content
Row

SparklineCollection.GetSparklines(CellRange) Method

Returns sparklines located in the specified cell range.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

IList<Sparkline> GetSparklines(
    CellRange range
)

Parameters

Name Type Description
range CellRange

A CellRange object containing the sparklines to be returned.

Returns

Type Description
IList<Sparkline>

A IList<T><Sparkline,> collection of sparklines residing in the specified cell range.

Remarks

Use the GetSparklines method to obtain a collection of sparklines which belong to the given SparklineCollection and occupy the specified cell range. The GetSparklines method returns an empty list in the following cases:

  • If the range parameter of the method is null.
  • If the CellRange object specified by the range parameter doesn’t belong to the same worksheet as the current SparklineCollection collection.
  • If the specified cell range doesn’t contain any sparklines belonging to the SparklineCollection collection that this method is called from.
See Also