以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  请教:如何得到SetHeaderCellBackColor设置后的颜色?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=161863)

--  作者:y2287958
--  发布时间:2021/4/1 15:14:00
--  请教:如何得到SetHeaderCellBackColor设置后的颜色?
用以下代码设置了指定单元格的背景色为红色:
Tables(表名).SetHeaderCellBackColor(列名,Color.red,行号) 

现在要得到设置后的颜色(红色),请问如何得到?谢谢

--  作者:有点蓝
--  发布时间:2021/4/1 15:39:00
--  
Dim i As Integer = Tables("表A").Cols("列名").Index +1
Dim rg As C1.Win.C1FlexGrid.CellRange = Tables("表A").Grid.GetCellRange(0, i, 0, i)
If rg.Style IsNot Nothing Then
    Output.Show(rg.Style.BackColor.Tostring)
End If

--  作者:y2287958
--  发布时间:2021/4/1 16:28:00
--  
图片点击可在新窗口打开查看O了,谢谢蓝版!