Editing Hyperlinks of Worksheet

Contents
[ ]

The following sample code accesses all the hyperlinks of the worksheet and changes their Hyperlink.Address property to the Aspose website.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
Workbook workbook = new Workbook(dataDir + "Sample.xlsx");
Worksheet worksheet = workbook.Worksheets[0];
for (int i = 0; i < worksheet.Hyperlinks.Count; i++)
{
Hyperlink hl = worksheet.Hyperlinks[i];
hl.Address = "http://www.aspose.com";
}
workbook.Save(dataDir + "output_out.xlsx");