get_LabelShapeType()
DataLabel::get_LabelShapeType() method
Gets the shape type of the data label. Returns ShapeType::NotDefined if no shape is defined.
ShapeType Aspose::Slides::Charts::DataLabel::get_LabelShapeType() override
Remarks
auto pres = System::MakeObject<Presentation>(u"Chart.pptx");
auto chart = System::ExplicitCast<IChart>(pres->get_Slide(0)->get_Shape(1));
auto firstSeries = chart->get_ChartData()->get_ChartSeries(0);
// Set the shape type of the first data label to Ellipse.
firstSeries->get_Label(0)->set_LabelShapeType(ShapeType::Ellipse);
pres->Save(u"ChartWithEllipseLabel.pptx", SaveFormat::Pptx);
See Also
- Enum ShapeType
- Class DataLabel
- Namespace Aspose::Slides::Charts
- Library Aspose.Slides