IsDefined
ChartFormat.IsDefined property
Hämtar en flagga som anger om något format är definierat.
public bool IsDefined { get; }
Exempel
Visar hur man återställer fyllningen till standardvärdet som definierats i serien.
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");
Se även
- class ChartFormat
- namnutrymme Aspose.Words.Drawing.Charts
- hopsättning Aspose.Words