IsDefined

ChartFormat.IsDefined property

Gets a flag indicating whether any format is defined.

public bool IsDefined { get; }

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