HyperlinkClass
Inheritance: System.Uri
Exemple #1
0
        public void PictureURL()
        {
            var ws = _pck.Workbook.Worksheets.Add("Pic URL");

            ExcelHyperLink hl = new ExcelHyperLink("http://epplus.codeplex.com");
            hl.ToolTip = "Screen Tip";

            ws.Drawings.AddPicture("Pic URI", Properties.Resources.Test1, hl);
        }
Exemple #2
0
 public void Hyperlink()
 {
     var ws = _pck.Workbook.Worksheets.Add("HyperLinks");
     var hl = new ExcelHyperLink("G1", "Till G1");
     hl.ToolTip = "Link to cell G1";
     ws.Cells["A1"].Hyperlink = hl;
 }
Exemple #3
0
 //[Ignore]
 //[TestMethod]
 public void Hyperlink()
 {
     var ws = _pck.Workbook.Worksheets.Add("HyperLinks");
     var hl = new ExcelHyperLink("G1", "Till G1");
     hl.ToolTip = "Link to cell G1";
     ws.Cells["A1"].Hyperlink = hl;
     //ws.Cells["A2"].Hyperlink = new ExcelHyperLink("mailto:ecsomany@google:huszar", UriKind.Absolute); //Invalid URL will throw an Exception
 }