GetOrCreateDataPointByIdx()
Contents
[
Hide
]ChartDataPointCollection::GetOrCreateDataPointByIdx(uint32_t) method
If collection already contains data point with index index then returns this data point. If collection doesn’t contains data point with index index ==N (when number of data points in this collection is less or equal then N) then adds deficient data points and returns last (which has requested index). For example, collection indexes are {0, 1, 2}, and requested index is 5. Then method adds deficient data points: {0, 1, 2, 3, 4, 5}. And returns data point with index 5.
System::SharedPtr<IChartDataPoint> Aspose::Slides::Charts::ChartDataPointCollection::GetOrCreateDataPointByIdx(uint32_t index) override
Arguments
Parameter | Type | Description |
---|---|---|
index | uint32_t | Index. |
Return Value
Returns data point with requested index.
See Also
- Typedef SharedPtr
- Class IChartDataPoint
- Class ChartDataPointCollection
- Namespace Aspose::Slides::Charts
- Library Aspose.Slides