Represents collection of a ChartSeries.
Shows how to add and remove series data in a chart.
#include <Aspose.Words.Cpp/Drawing/Charts/ChartSeriesCollection.h>
Public Member Functions | |
SharedPtr< ChartSeries > | Add (String seriesName, ArrayPtr< double > xValues, ArrayPtr< double > yValues) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Scatter charts. More... | |
SharedPtr< ChartSeries > | Add (String seriesName, ArrayPtr< double > xValues, ArrayPtr< double > yValues, ArrayPtr< double > bubbleSizes) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Bubble charts. More... | |
SharedPtr< ChartSeries > | Add (String seriesName, ArrayPtr< DateTime > dates, ArrayPtr< double > values) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Area, Radar and Stock charts. More... | |
SharedPtr< ChartSeries > | Add (String seriesName, ArrayPtr< String > categories, ArrayPtr< double > values) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Bar, Column, Line and Surface charts. More... | |
void | Clear () |
Removes all ChartSeries from this collection. More... | |
int32_t | get_Count () |
Returns the number of ChartSeries in this collection. More... | |
SharedPtr< IEnumerator< SharedPtr< ChartSeries > > > | GetEnumerator () override |
Returns an enumerator object. More... | |
virtual const TypeInfo & | GetType () const override |
SharedPtr< ChartSeries > | idx_get (int32_t index) |
Returns a ChartSeries at the specified index. More... | |
virtual bool | Is (const TypeInfo &target) const override |
void | RemoveAt (int32_t index) |
Removes a ChartSeries at the specified index. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartSeries> Aspose::Words::Drawing::Charts::ChartSeriesCollection::Add | ( | System::String | seriesName, |
System::ArrayPtr< double > | xValues, | ||
System::ArrayPtr< double > | yValues | ||
) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Scatter charts.
Shows how to create an appropriate type of chart series for a graph type.
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartSeries> Aspose::Words::Drawing::Charts::ChartSeriesCollection::Add | ( | System::String | seriesName, |
System::ArrayPtr< double > | xValues, | ||
System::ArrayPtr< double > | yValues, | ||
System::ArrayPtr< double > | bubbleSizes | ||
) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Bubble charts.
Shows how to create an appropriate type of chart series for a graph type.
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartSeries> Aspose::Words::Drawing::Charts::ChartSeriesCollection::Add | ( | System::String | seriesName, |
System::ArrayPtr< System::DateTime > | dates, | ||
System::ArrayPtr< double > | values | ||
) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Area, Radar and Stock charts.
Shows how to create an appropriate type of chart series for a graph type.
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartSeries> Aspose::Words::Drawing::Charts::ChartSeriesCollection::Add | ( | System::String | seriesName, |
System::ArrayPtr< System::String > | categories, | ||
System::ArrayPtr< double > | values | ||
) |
Adds new ChartSeries to this collection. Use this method to add series to any type of Bar, Column, Line and Surface charts.
Shows how to create an appropriate type of chart series for a graph type.
void Aspose::Words::Drawing::Charts::ChartSeriesCollection::Clear | ( | ) |
Removes all ChartSeries from this collection.
Shows how to add and remove series data in a chart.
int32_t Aspose::Words::Drawing::Charts::ChartSeriesCollection::get_Count | ( | ) |
Returns the number of ChartSeries in this collection.
Shows how to add and remove series data in a chart.
|
override |
Returns an enumerator object.
Shows how to add and remove series data in a chart.
|
overridevirtual |
Reimplemented from System::Object.
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartSeries> Aspose::Words::Drawing::Charts::ChartSeriesCollection::idx_get | ( | int32_t | index | ) |
Returns a ChartSeries at the specified index.
The index is zero-based.
Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.
If index is greater than or equal to the number of items in the list, this returns a null reference.
If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.
index | An index into the collection. |
Shows how to add and remove series data in a chart.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Drawing::Charts::ChartSeriesCollection::RemoveAt | ( | int32_t | index | ) |
Removes a ChartSeries at the specified index.
index | The zero-based index of the ChartSeries to remove. |
Shows how to add and remove series data in a chart.
|
static |