java.lang.Object
CollectionBase
com.aspose.cells.TrendlineCollection
- All Implemented Interfaces:
- com.aspose.cells.c.b.a.a.a.c.b.e
public class TrendlineCollection
- extends CollectionBase
Represents a collection of all the Trendline objects for the specified data series.
Example:
int chartIndex = excel.getWorksheets().get(0).getCharts().add(ChartType.COLUMN, 3, 3, 15, 10);
Chart chart = excel.getWorksheets().get(0).getCharts().get(chartIndex);
chart.getNSeries().add("A1:a3", true);
chart.getNSeries().get(0).getTrendLines().add(TrendlineType.LINEAR, "MyTrendLine");
Trendline line = chart.getNSeries().get(0).getTrendLines().get(0);
line.setDisplayEquation(true);
line.setDisplayRSquared(true);
line.setColor(Color.getRed());
Property Getters/Setters Summary |
int | getCount() | → inherited from com.aspose.cells.CollectionBase |
| |
Trendline | get(int index) | |
|
Gets a object by its index.
|
Method Summary |
int | add(int type) | |
Adds a object to this collection with specified type.
|
int | add(int type, java.lang.String name) | |
Adds a object to this collection with specified type and name.
|
int | add(java.lang.Object value) | → inherited from com.aspose.cells.CollectionBase |
Reserved for internal use. |
void | clear() | → inherited from com.aspose.cells.CollectionBase |
|
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 | removeAt(int index) | → inherited from com.aspose.cells.CollectionBase |
|
Property Getters/Setters Detail |
getCount | → inherited from com.aspose.cells.CollectionBase |
public int getCount()
|
-
-
Gets a object by its index.
- See Also:
- Trendline
add | |
public int add(int type) |
-
Adds a object to this collection with specified type.
- Parameters:
type
- A TrendlineType value. Trendline type.
- Returns:
- Trendline object index.
- See Also:
- Trendline
add | |
public int add(int type, java.lang.String name) |
-
Adds a object to this collection with specified type and name.
- Parameters:
type
- A TrendlineType value. Trendline type.name
- Trendline name.
- Returns:
- Trendline object index.
- See Also:
- Trendline
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() |
-
get | → inherited from com.aspose.cells.CollectionBase |
public java.lang.Object get(int index) |
- Reserved for internal use.
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.Cellss Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.