BuiltInDocumentPropertyCollection.HyperlinkBase

BuiltInDocumentPropertyCollection.HyperlinkBase property

Gets or sets the hyperlinkbase property.

public string HyperlinkBase { get; set; }

Examples

using System;
using Aspose.Cells;

namespace AsposeCellsExamples
{
    public class BuiltInDocumentPropertyCollectionPropertyHyperlinkBaseDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();

            // Set the HyperlinkBase property
            workbook.BuiltInDocumentProperties.HyperlinkBase = "http://www.example.com";

            // Set some other property for demonstration
            workbook.BuiltInDocumentProperties.Title = "Sample Workbook";

            // Save the workbook
            workbook.Save("HyperlinkBaseDemo.xlsx", SaveFormat.Xlsx);

            // Load the saved workbook to verify properties
            Workbook loadedWorkbook = new Workbook("HyperlinkBaseDemo.xlsx");
            
            // Output the properties to console
            Console.WriteLine("HyperlinkBase: " + loadedWorkbook.BuiltInDocumentProperties.HyperlinkBase);
            Console.WriteLine("Title: " + loadedWorkbook.BuiltInDocumentProperties.Title);
        }
    }
}

See Also