تحرير الارتباطات التشعبية لورقة العمل
Contents
[
Hide
]
يسمح Aspose.Cells للغة Python via .NET بالوصول إلى جميع الارتباطات في ورقة العمل باستخدام مجموعة Worksheet.hyperlinks. يمكنك الوصول إلى كل ارتباط من هذه المجموعة وتعديل خصائصه.
يصل الكود النموذجي التالي إلى كل روابط الفائقة للصفحة العمل ويغير خاصية Hyperlink.address إلى موقع Aspose.
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 | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
workbook = Workbook(dataDir + "Sample.xlsx") | |
worksheet = workbook.worksheets[0] | |
for i in range(len(worksheet.hyperlinks)): | |
hl = worksheet.hyperlinks[i] | |
hl.address = "http://www.aspose.com" | |
workbook.save(dataDir + "output_out.xlsx") |