SetDefaultFill

ChartFormat.SetDefaultFill method

Resets the fill of the chart element to have the default value.

public void SetDefaultFill()

Examples

Shows how to reset the fill to the default value defined in the series.

Document doc = new Document(MyDir + "DataPoint format.docx");

Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
ChartSeries series = shape.Chart.Series[0];
ChartDataPoint dataPoint = series.DataPoints[1];

Assert.IsTrue(dataPoint.Format.IsDefined);

dataPoint.Format.SetDefaultFill();

doc.Save(ArtifactsDir + "Charts.ResetDataPointFill.docx");

See Also