可以的,可以参考以下代码
- fpSpread1.ActiveSheet.Columns[0].Width = 145;
- fpSpread1.ActiveSheet.Rows[0].Height = 45;
- FarPoint.Win.Spread.CellType.HyperLinkCellType mhp = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
- mhp.Text = "FarPoint and Microsoft";
- string[] s = new string[] { "www.fpoint.com", "www.microsoft.com" };
- mhp.Links = s;
- mhp.VisitedLinkColor = System.Drawing.Color.Maroon;
- LinkArea[] la = new LinkArea[] { new LinkArea(0, 8), new LinkArea(13, 9) };
- mhp.LinkAreas = la;
- fpSpread1.ActiveSheet.Cells[0, 0].CellType = mhp;
复制代码
最终效果
|