java.lang.ObjectCollectionBase
com.aspose.cells.ChartCollection
public class ChartCollection
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 index) | |
Gets the |
||
Chart | get(java.lang.String name) | |
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(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. | ||
java.lang.Object | get(int index) | → 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) |
index
- The zero based index of the element.get | |
public Chart get(java.lang.String name) |
name
- The chart name.Method Detail |
---|
addFloatingChart | |
public int addFloatingChart(int type, int left, int top, int width, int height) |
type
- A left
- The x offset to cornertop
- The y offset to cornerwidth
- The chart widthheight
- The chart heightadd | |
public int add(int type, int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn) |
type
- A upperLeftRow
- Upper left row index.upperLeftColumn
- Upper left column index.lowerRightRow
- Lower right row indexlowerRightColumn
- Lower right column indexremove | |
public void remove(Chart chart) |
chart
- removeAt | |
public void removeAt(int index) |
index
- The chart index.clear | |
public void clear() |
iterator | → inherited from com.aspose.cells.CollectionBase |
public java.util.Iterator iterator() |
get | → inherited from com.aspose.cells.CollectionBase |
public java.lang.Object get(int index) |
contains | → inherited from com.aspose.cells.CollectionBase |
public boolean contains(java.lang.Object value) |
add | → inherited from com.aspose.cells.CollectionBase |
public int add(java.lang.Object value) |
indexOf | → inherited from com.aspose.cells.CollectionBase |
public int indexOf(java.lang.Object value) |