Birleşik Aralık Oluştur

Birleşik Aralık Oluştur

Aspose.Cells, WorksheetCollection.CreateUnionRange methodunu kullanarak Birleşik Aralık oluşturma yeteneği sağlar. WorksheetCollection.CreateUnionRange methodu, birleşik aralık oluşturmak için adres ve çalışsayfa dizinini kabul eder. WorksheetCollection.CreateUnionRange methodu, bir BirleşikAralık nesnesi döndürür.

Aşağıdaki kod parçacığı, WorksheetCollection.CreateUnionRange methodunu kullanarak Birleşik Aralık oluşturmayı gösterir. Kod tarafından oluşturulan çıktı dosyası örnek olarak eklenmiştir.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
//Source directory
String sourceDir = Utils.Get_SourceDirectory();
//Output directory
String outputDir = Utils.Get_OutputDirectory();
// Instantiating a Workbook object
Workbook workbook = new Workbook(sourceDir + "SampleChangeTickLabelDirection.xlsx");
Worksheet worksheet = workbook.getWorksheets().get(0);
// Load the chart from source worksheet
Chart chart = worksheet.getCharts().get(0);
chart.getCategoryAxis().getTickLabels().setDirectionType(ChartTextDirectionType.HORIZONTAL);
// Output the file
workbook.save(outputDir + "outputChangeTickLabelDirection.xlsx");