Dahili Belge Özelliklerini Kullanarak Excel Dosyasının Dilini Belirtme
Olası Kullanım Senaryoları
Excel dosyasının dilini değiştirebilirsiniz dosyaya sağ tıklayıp ardından Özellikler > Ayrıntılar’ı seçerek Dil alanını düzenleyin. Lütfen, Bunun programatik olarak değişmesi için Aspose.Cells API’leri kullanarak BuiltInDocumentPropertyCollection.Language özelliğini kullanın.
Dahili Belge Özelliklerini Kullanarak Excel Dosyasının Dilini Belirtme
Aşağıdaki örnek kod bir çalışma kitabı oluşturur ve Dil adı verilen yerleşik belge özelliğini değiştirir. Lütfen, BuiltInDocumentPropertyCollection.Language özelliği ile değiştirilen Dil alanını gösteren kod tarafından oluşturulan çıktı Excel dosyasını ve ekran görüntüsünü inceleyin.
Örnek Kod
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Create workbook object. | |
Workbook wb = new Workbook(); | |
//Access built-in document property collection. | |
Aspose.Cells.Properties.BuiltInDocumentPropertyCollection bdpc = wb.BuiltInDocumentProperties; | |
//Set the language of the Excel file. | |
bdpc.Language = "German, French"; | |
//Save the workbook in xlsx format. | |
wb.Save(outputDir + "outputSpecifyLanguageOfExcelFileUsingBuiltInDocumentProperties.xlsx", SaveFormat.Xlsx); |