ワークシートの一意のIDを取得
Contents
[
Hide
]
ワークシートのユニークIDを取得する方法
Aspose.Cells for Python via .NETは、Worksheet.unique_idプロパティを使用してワークシートのユニークIDを取得する機能を提供します。以下のコードスニペットは、Worksheet.unique_idプロパティを使用してワークシートのユニークIDを出力する例です。このコードは、サンプルExcelファイルを利用しています。
ソースコード
This file contains hidden or 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
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Source directory | |
sourceDir = RunExamples.Get_SourceDirectory() | |
# Load source Excel file | |
workbook = Workbook(sourceDir + "Book1.xlsx") | |
# Access first worksheet | |
worksheet = workbook.worksheets[0] | |
# Print Unique Id | |
print("Unique Id: " + worksheet.unique_id) |