SetDefaultFill

ChartFormat.SetDefaultFill method

Setzt die Füllung des Diagrammelements auf den Standardwert zurück.

public void SetDefaultFill()

Beispiele

Zeigt, wie die Füllung auf den in der Serie definierten Standardwert zurückgesetzt wird.

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");

Siehe auch