get_SecondaryCategories()
Contents
[
Hide
]IChartData::get_SecondaryCategories() method
Gets the secondary categories if IChartData::get_UseSecondaryCategories is true. Read-only IChartCategoryCollection.
virtual System::SharedPtr<IChartCategoryCollection> Aspose::Slides::Charts::IChartData::get_SecondaryCategories()=0
Remarks
If IChartData::set_UseSecondaryCategories is set to false then IChartData::get_SecondaryCategories returns null and data in IChartData::get_Categories is used both for primary and secondary series. If IChartData::set_UseSecondaryCategories is set to true then data in IChartData::get_SecondaryCategories is used for secondary series and data in IChartData::get_Categories is used for primary series.
Example. What categories are related to series - ChartData.Categories or ChartData.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 IChartData
- Namespace Aspose::Slides::Charts
- Library Aspose.Slides