Modifica collegamenti ipertestuali del foglio di calcolo
Contents
[
Hide
]
Aspose.Cells per Python via .NET ti consente di accedere a tutti i collegamenti ipertestuali del foglio di lavoro utilizzando la Worksheet.hyperlinks raccolta. Puoi accedere a ciascun collegamento ipertestuale da questa raccolta uno per uno e modificare le sue proprietà.
Il codice di esempio seguente accede a tutti i collegamenti ipertestuali del foglio di lavoro e cambia la loro proprietà Hyperlink.address al sito web 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") |