تغيير اتجاه تسمية التجزئة
Contents
[
Hide
]
تغيير اتجاه تسمية التجزئة
يوفر لك Aspose.Cells القدرة على تغيير اتجاه تسمية علامة التجزئة على الرسم البياني باستخدامTickLabels.DirectionType خاصية. الTickLabels.DirectionType يقبل العقارChartTextDirectionType قيمة العد. الChartTextDirectionTypeيوفر التعداد الأعضاء التالية
- أفقي
- عمودي
- استدارة 90
- استدارة 270
- مرصوصة
الصورة التالية تقارن بين ملفات المصدر والمخرجات
صورة الملف المصدر
صورة ملف الإخراج
يغير مقتطف الكود التالي اتجاه تسمية التجزئة من Rotate90 إلى Horizontal.
عينة من الرموز
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 | |
Workbook workbook = new Workbook(sourceDir + "SampleChangeTickLabelDirection.xlsx"); | |
Worksheet worksheet = workbook.Worksheets[0]; | |
// Load the chart from source worksheet | |
Chart chart = worksheet.Charts[0]; | |
chart.CategoryAxis.TickLabels.DirectionType = ChartTextDirectionType.Horizontal; | |
// Output the file | |
workbook.Save(outputDir + "outputChangeChartDataLableDirection.xlsx"); |
يمكن تنزيل ملفات المصدر والمخرجات من الروابط التالية.