Çalışma sayfası benzersiz kimliğini alma
Contents
[
Hide
]
Çalışma sayfası benzersiz kimliğini alın
Aspose.Cells, Worksheet’ın benzersiz kimliğini Worksheet.UniqueId özelliğini kullanarak almayı sağlar. Aşağıdaki kod parçası, bir çalışsayfanın benzersiz kimliğini yazdırmak için Worksheet.UniqueId özelliğinin kullanımını göstermektedir. Aşağıdaki kod parçası, bu örnek excel dosyasını kullanır.
Kaynak Kodu
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 | |
// Source directory | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
// Load source Excel file | |
Workbook workbook = new Workbook(sourceDir + "Book1.xlsx"); | |
// Access first worksheet | |
Worksheet worksheet = workbook.Worksheets[0]; | |
// Print Unique Id | |
Console.WriteLine("Unique Id: " + worksheet.UniqueId); |