Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Dilini Belirtin
Contents
[
Hide
]
Olası Kullanım Senaryoları
Excel dosyasının dilini, dosyayı sağ tıklatıp Özellikler > Ayrıntılar’ı seçip Dil alanını düzenleyerek değiştirebilirsiniz. Lütfen kullanBuiltInDocumentPropertyCollection.LanguageAspose.Cells API’leri kullanarak programlı olarak değiştirmek için özellik.
Yerleşik Belge Özelliklerini Kullanarak Excel Dosyasının Dilini Belirtin
Aşağıdaki örnek kod, bir çalışma kitabı oluşturur ve Dil adlı yerleşik belge özelliğini değiştirir. Lütfen bkzçıktı excel dosyası değiştirilen Dil alanını gösteren kod ve ekran görüntüsü tarafından oluşturulur.BuiltInDocumentPropertyCollection.LanguageEmlak.
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 | |
//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); |