get_Categories()
Contents
[
Hide
]ChartData::get_Categories() method
Gets the primary categories (or both primary and secondary categories if ChartData::set_UseSecondaryCategories is set to false). Read-only IChartCategoryCollection.
System::SharedPtr<IChartCategoryCollection> Aspose::Slides::Charts::ChartData::get_Categories() override
Remarks
If ChartData::set_UseSecondaryCategories is set to false then ChartData::get_SecondaryCategories returns null and data in ChartData::get_Categories is used both for primary and secondary series. If ChartData::set_UseSecondaryCategories is set to true then data in ChartData::get_SecondaryCategories is used for secondary series and data in ChartData::get_Categories is used for primary series.
Example. What categories are related to series - ChartData::get_Categories or ChartData::get_SecondaryCategories?
if (series->get_PlotOnSecondAxis() && series->get_Chart()->get_ChartData()->get_UseSecondaryCategories())
{
// related categories are series->get_Chart()->get_ChartData()->get_SecondaryCategories()
}
else
{
// related categories are series->get_Chart()->get_ChartData()->get_Categories()
}
See Also
- Typedef SharedPtr
- Class IChartCategoryCollection
- Class ChartData
- Namespace Aspose::Slides::Charts
- Library Aspose.Slides