com.aspose.cells.ChartCollection.html Maven / Gradle / Ivy
ChartCollection
com.aspose.cells
Class ChartCollection
java.lang.Object
CollectionBase
com.aspose.cells.ChartCollection
- All Implemented Interfaces:
- java.lang.Iterable
public class ChartCollection
- extends CollectionBase
Example:
Workbook workbook = new Workbook();
ChartCollection charts = workbook.getWorksheets().get(0).getCharts();
Property Getters/Setters Summary | ||
---|---|---|
int | getCount() | → inherited from com.aspose.cells.CollectionBase
|
Chart | get(int) | |
Gets the |
||
Chart | get(java.lang.String) | |
Gets the chart by the name. |
Method Summary | ||
---|---|---|
int | add(int type, int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn) | |
Adds a chart to the collection. | ||
int | add(int type, java.lang.String dataRange, int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn) | |
Adds a chart to the collection. | ||
int | add(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase
|
Reserved for internal use. | ||
int | addFloatingChart(int type, int left, int top, int width, int height) | |
Adds a chart to the collection. | ||
void | clear() | |
Clear all charts. | ||
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 | remove(Chart chart) | |
Remove the specific chart. | ||
void | removeAt(int index) | |
Remove a chart at the specific index. |
Property Getters/Setters Detail |
---|
getCount | → inherited from com.aspose.cells.CollectionBase
|
public int getCount() |
get | |
public Chart get(int index) |
Gets the Chart element at the specified index.- Parameters:
index
- The zero based index of the element.
- Returns:
- The element at the specified index.
get | |
public Chart get(java.lang.String name) |
Gets the chart by the name. The default chart name is null. So you have to explicitly set the name of the chart. - Parameters:
name
- The chart name.
- Returns:
- The chart.
Method Detail |
---|
addFloatingChart | |
public int addFloatingChart(int type, int left, int top, int width, int height) |
Adds a chart to the collection. - Parameters:
type
- AChartType value. Chart typeleft
- The x offset to cornertop
- The y offset to cornerwidth
- The chart widthheight
- The chart height
- Returns:
Chart object index.
add | |
public int add(int type, int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn) |
Adds a chart to the collection. - Parameters:
type
- AChartType value. Chart typeupperLeftRow
- Upper left row index.upperLeftColumn
- Upper left column index.lowerRightRow
- Lower right row indexlowerRightColumn
- Lower right column index
- Returns:
Chart object index.
add | |
public int add(int type, java.lang.String dataRange, int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn) |
Adds a chart to the collection. - Parameters:
type
- AChartType value. Chart typedataRange
- Specifies the data range of the chartupperLeftRow
- Upper left row index.upperLeftColumn
- Upper left column index.lowerRightRow
- Lower right row indexlowerRightColumn
- Lower right column index
- Returns:
Chart object index.
remove | |
public void remove(Chart chart) |
Remove the specific chart. - Parameters:
chart
-
removeAt | |
public void removeAt(int index) |
Remove a chart at the specific index. - Parameters:
index
- The chart index.
clear | |
public void clear() |
Clear all charts.
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.