以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]表格中的字体如何设置?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=119253)

--  作者:新福星
--  发布时间:2018/5/21 16:20:00
--  [求助]表格中的字体如何设置?

见标题。谢谢


--  作者:有点甜
--  发布时间:2018/5/21 16:23:00
--  

Tables("表A").font = new font("宋体", 12)

 

--------

 

Tables("表A").grid.cols("第一列").style.font = new font("宋体", 13)

 

--------------

 

Dim tb As Table = Tables("表A")
Dim cs1 As C1.Win.C1FlexGrid.CellStyle = tb.Grid.Styles.Add("样式1")
Dim rng As C1.Win.C1FlexGrid.CellRange = tb.Grid.GetCellRange(1,2, 3,3)
cs1.backcolor = color.yellow
cs1.forecolor = color.red
cs1.font = new font("宋体", 15)
rng.style = cs1