Aspose::Words::Drawing::Charts::ChartFormat::get_IsDefined method
ChartFormat::get_IsDefined method
Gets a flag indicating whether any format is defined.
bool Aspose::Words::Drawing::Charts::ChartFormat::get_IsDefined()
Examples
Shows how to reset the fill to the default value defined in the series.
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"DataPoint format.docx");
auto shape = System::ExplicitCast<Aspose::Words::Drawing::Shape>(doc->GetChild(Aspose::Words::NodeType::Shape, 0, true));
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartSeries> series = shape->get_Chart()->get_Series()->idx_get(0);
System::SharedPtr<Aspose::Words::Drawing::Charts::ChartDataPoint> dataPoint = series->get_DataPoints()->idx_get(1);
ASSERT_TRUE(dataPoint->get_Format()->get_IsDefined());
dataPoint->get_Format()->SetDefaultFill();
doc->Save(get_ArtifactsDir() + u"Charts.ResetDataPointFill.docx");
See Also
- Class ChartFormat
- Namespace Aspose::Words::Drawing::Charts
- Library Aspose.Words for C++