set_LabelShapeType()

DataLabel::set_LabelShapeType(ShapeType) method

Sets the shape type of the data label. Returns ShapeType::NotDefined if no shape is defined.

void Aspose::Slides::Charts::DataLabel::set_LabelShapeType(ShapeType value) 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