GroupDocsGists
10/19/2017 - 10:59 AM

RemoveHyperlinksExcel.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (CellsDocument doc = Document.Load<CellsDocument>(Utilities.MapSourceFilePath(FilePath)))
{
    // Replace hyperlink
    doc.Worksheets[0].Charts[0].Hyperlink = "https://www.aspose.com/";
    doc.Worksheets[0].Shapes[0].Hyperlink = "https://www.groupdocs.com/";

    // Remove hyperlink
    doc.Worksheets[1].Charts[0].Hyperlink = null;
    doc.Worksheets[1].Shapes[0].Hyperlink = null;

    doc.Save();  
}