تعيين نص إدخال وسيلة إيضاح الرسم البياني إلى لا شيء باستخدام Aspose.Cells

Contents
[ ]

يعين نموذج التعليمات البرمجية التالي نص تعبئة إدخال وسيلة الإيضاح الثانية للمخطط إلى بلا. يرجى تنزيل ملفنموذج ملف اكسل المستخدمة في هذا الرمز وملف اكسل الناتج ولدت به للرجوع اليها.

توضح لقطة الشاشة التالية تأثير هذا الرمز علىنموذج ملف اكسل.

ما يجب القيام به: image_بديل_نص

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Open the template file.
Workbook workbook = new Workbook(dataDir + "Sample.xlsx");
// Access the first worksheet
Worksheet sheet = workbook.Worksheets[0];
// Access the first chart inside the sheet
Chart chart = sheet.Charts[0];
// Set text of second legend entry fill to none
chart.Legend.LegendEntries[1].IsTextNoFill = true;
// Save the workbook in xlsx format
workbook.Save(dataDir + "ChartLegendEntry_out.xlsx", SaveFormat.Xlsx);