java.lang.Object
CollectionBase
com.aspose.cells.SparklineGroupCollection
- All Implemented Interfaces:
- java.lang.Iterable
public class SparklineGroupCollection
- extends CollectionBase
Encapsulates a collection of SparklineGroup objects.
Example:
Workbook book = new Workbook();
Worksheet sheet = book.getWorksheets().get(0);
sheet.getCells().get("A1").putValue(5);
sheet.getCells().get("B1").putValue(2);
sheet.getCells().get("C1").putValue(1);
sheet.getCells().get("D1").putValue(3);
// Define the CellArea
CellArea ca = new CellArea();
ca.StartColumn = 4;
ca.EndColumn = 4;
ca.StartRow = 0;
ca.EndRow = 0;
int idx = sheet.getSparklineGroupCollection().add(com.aspose.cells.SparklineType.LINE, "A1:D1", false, ca);
SparklineGroup group = sheet.getSparklineGroupCollection().get(idx);
group.getSparklineCollection().add(sheet.getName() + "!A1:D1", 0, 4);
book.save("output.xlsx", SaveFormat.XLSX);
|
Method Summary |
int | add(int type, java.lang.String dataRange, boolean isVertical, CellArea locationRange) | |
|
Adds an SparklineGroup item to the collection.
|
int | add(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
void | clear() | → inherited from com.aspose.cells.CollectionBase
|
| |
void | clearSparklineGroups(CellArea cellArea) | |
|
Clears the sparkline groups that overlaps an area of cells.
|
void | clearSparklines(CellArea cellArea) | |
|
Clears the sparklines that is inside an area of cells.
|
boolean | contains(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
int | indexOf(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
| Reserved for internal use. |
java.util.Iterator | iterator() | → inherited from com.aspose.cells.CollectionBase
|
| |
void | removeAt(int index) | → inherited from com.aspose.cells.CollectionBase
|
| |
|
Property Getters/Setters Detail |
getCount | → inherited from com.aspose.cells.CollectionBase
|
public int getCount()
|
-
-
Gets the SparklineGroup element at the specified index.
- Parameters:
index - The zero based index of the element.
- Returns:
- The element at the specified index.
add | |
public int add(int type, java.lang.String dataRange, boolean isVertical, CellArea locationRange) |
-
Adds an SparklineGroup item to the collection.
- Parameters:
type - A SparklineType value. Specifies the type of the Sparkline group.dataRange - Specifies the data range of the sparkline group.isVertical - Specifies whether to plot the sparklines from the data range by row or by column.locationRange - Specifies where the sparklines to be placed.
- Returns:
- SparklineGroup object index.
clearSparklines | |
public void clearSparklines(CellArea cellArea) |
-
Clears the sparklines that is inside an area of cells.
- Parameters:
cellArea - Specifies the area of cells
clearSparklineGroups | |
public void clearSparklineGroups(CellArea cellArea) |
-
Clears the sparkline groups that overlaps an area of cells.
- Parameters:
cellArea - Specifies the area of cells
clear | → inherited from com.aspose.cells.CollectionBase
|
public void clear() |
-
removeAt | → inherited from com.aspose.cells.CollectionBase
|
public void removeAt(int index) |
-
iterator | → inherited from com.aspose.cells.CollectionBase
|
public java.util.Iterator iterator() |
-
contains | → inherited from com.aspose.cells.CollectionBase
|
public boolean contains(java.lang.Object value) |
- Reserved for internal use.
add | → inherited from com.aspose.cells.CollectionBase
|
public int add(java.lang.Object value) |
- Reserved for internal use.
indexOf | → inherited from com.aspose.cells.CollectionBase
|
public int indexOf(java.lang.Object value) |
- Reserved for internal use.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.