Enum TargetModeType

TargetModeType enumeration

Represents the type of target mode.

public enum TargetModeType

Values

NameValueDescription
External0External link
FilePath1Local and full paths to files or folders.
Email2Email.
CellReference3Link on cell or named range.

Examples

using System;
using Aspose.Cells;

namespace AsposeCellsExamples
{
    public class CellsClassTargetModeTypeDemo
    {
        public static void Run()
        {
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];
            
            // Add an external hyperlink
            worksheet.Hyperlinks.Add("A1", 1, 1, "https://www.aspose.com");
            
            // Get the hyperlink and check its TargetModeType
            Hyperlink link = worksheet.Hyperlinks[0];
            Console.WriteLine("Hyperlink TargetModeType: " + link.LinkType);
            
            // Delete the hyperlink
            link.Delete();
            Console.WriteLine("Hyperlinks count after deletion: " + worksheet.Hyperlinks.Count);
        }
    }
}

See Also