عرض Cell المدى كعناوين بيانات
Contents
[
Hide
]
في Microsoft Excel 2013 ، يمكنك عرض نطاق خلايا لتسميات البيانات. Aspose.Cells يدعم هذه الميزة.
خانة الاختيار لإظهار النطاق Cell كعناوين بيانات
لإظهار نطاق الخلايا كعناوين بيانات في Microsoft Excel:
- حدد تسميات بيانات السلسلة وانقر بزر الماوس الأيمن لفتح قائمة السياق.
- يختارتنسيق تسميات البيانات. يتم عرض خيارات التسمية.
- حدد أو امسح الخياريحتوي الملصق على - القيمة من Cells.
يصل نموذج التعليمة البرمجية أدناه إلى تسميات بيانات سلسلة التخطيط ويعين ملفDataLabels.ShowCellRange ملكية لحقيقي لتحديد اليحتوي الملصق على - القيمة من Cells اختيار.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
// Create workbook from the source Excel file | |
Workbook workbook = new Workbook(dataDir + "source.xlsx"); | |
// Access the first worksheet | |
Worksheet worksheet = workbook.Worksheets[0]; | |
// Access the chart inside the worksheet | |
Chart chart = worksheet.Charts[0]; | |
// Check the "Label Contains - Value From Cells" | |
DataLabels dataLabels = chart.NSeries[0].DataLabels; | |
dataLabels.ShowCellRange = true; | |
// Save the workbook | |
workbook.Save(dataDir + "output_out.xlsx"); |