以文本方式查看主题

-  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=130848)

--  作者:sloyy
--  发布时间:2019/2/5 15:49:00
--  单元格如何图文混合显示?
在论坛里找到一段代码:
Dim t As Table = Tables("表A")
Dim cs1 As C1.Win.C1FlexGrid.CellStyle = t.grid.Styles.Add("cs1")
cs1.backcolor = Color.red
cs1.ForeColor = Color.blue
cs1.Font = new Font("黑体",12,FontStyle.Underline)
cs1.BackgroundImage = getimage("d:\\红旗.jpg")
cs1.Display =  C1.Win.C1FlexGrid.DisplayEnum.Imageonly
cs1.BackgroundImageLayout = C1.Win.C1FlexGrid.ImageAlignEnum.Stretch
t.grid.SetCellStyle(1, 1, cs1)

只能显示图片
能不能改一改,图文混合显示?

--  作者:y2287958
--  发布时间:2019/2/7 9:44:00
--  
不可以
--  作者:sloyy
--  发布时间:2019/2/7 10:43:00
--  
可以加入图标
图片点击可在新窗口打开查看此主题相关图片如下:搜狗截图20190207103811.jpg
图片点击可在新窗口打开查看

--  作者:y2287958
--  发布时间:2019/2/7 10:59:00
--  
这个本身就可以
--  作者:有点甜
--  发布时间:2019/2/10 12:10:00
--  

rtf列也可以

 

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=63410&skin=0

 

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=104370&replyID=715168&skin=1