以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  请教合并单元格  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=186792)

--  作者:hbhb
--  发布时间:2023/5/29 18:21:00
--  请教合并单元格
大师:请问通过下面的代码合并单元格后,如何让此合并单元格可以编辑?

Dim tb As Table = Tables("表B")
Dim a As Integer = tb.TopRow + 2
Dim b As Integer = tb.LeftCol + 1
Dim c As Integer = tb.BottomRow + 1
Dim d As Integer = tb.RightCol + 1
tb.Grid.AllowMerging = C1.Win.C1FlexGrid.AllowMergingEnum.Custom 
Dim rng As C1.Win.C1FlexGrid.CellRange = tb.Grid.GetCellRange(a, b, c, d)
tb.Grid.MergedRanges.Add(rng)

--  作者:有点蓝
--  发布时间:2023/5/29 20:52:00
--  
没有找到相关的用法