Onay İşareti Yönünü Değiştir
Contents
[
Hide
]
Onay İşareti Yönünü Değiştir
Aspose.Cells, size grafik işareti etiket yönünü kullanarak değiştirme olanağı sağlar.TickLabels.DirectionType Emlak. buTickLabels.DirectionType mülkiyet kabul ederChartTextDirectionType numaralandırma değeri. buChartTextDirectionTypenumaralandırma aşağıdaki üyeleri sağlar
- Yatay
- Dikey
- Döndür90
- Döndür270
- Yığılmış
Aşağıdaki görüntü, kaynak ve çıktı dosyalarını karşılaştırır
Kaynak dosya resmi
Çıktı dosyası görüntüsü
Aşağıdaki kod parçacığı, onay etiketi yönünü Rotate90’dan Horizontal’a değiştirir.
Basit kod
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"); |
Kaynak ve çıktı dosyaları aşağıdaki bağlantılardan indirilebilir.