SourceFullName

Chart.SourceFullName property

يحصل على المسار واسم ملف xls/xlsx الذي يرتبط به هذا الرسم البياني.

public string SourceFullName { get; set; }

أمثلة

يوضح كيفية الحصول على/تعيين الاسم الكامل للمستند الخارجي xls/xlsx إذا تم ربط الرسم البياني.

Document doc = new Document(MyDir + "Shape with linked chart.docx");

Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);

var sourceFullName = shape.Chart.SourceFullName;
Assert.True(sourceFullName.Contains("Examples\\Data\\Spreadsheet.xlsx"));

أنظر أيضا