IsDefined
ChartFormat.IsDefined property
获取一个标志,指示是否定义了任何格式。
public bool IsDefined { get; }
例子
显示如何将填充重置为系列中定义的默认值。
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");
也可以看看
- class ChartFormat
- 命名空间 Aspose.Words.Drawing.Charts
- 部件 Aspose.Words