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