set_LeaderLinesColor()

IDataLabelCollection::set_LeaderLinesColor(System::Drawing::Color) method

Sets the color of all leader lines in the collection. Write System::Drawing::Color.

virtual void Aspose::Slides::Charts::IDataLabelCollection::set_LeaderLinesColor(System::Drawing::Color value)=0

Remarks

Deprecated
Use Aspose.Slides.Charts.IDataLabelCollection instead. The method will be removed after release of version 23.8.

Example:

auto pres = System::MakeObject<Presentation>(u"pres.pptx");
auto chart = System::ExplicitCast<IChart>(pres->get_Slides()->idx_get(0)->get_Shapes()->idx_get(0));
auto series = chart->get_ChartData()->get_Series();
auto labels = series->idx_get(0)->get_Labels();

labels->set_LeaderLinesColor(System::Drawing::Color::FromArgb(255, 255, 0, 0));

See Also