当前位置:网站首页>Aspose. Words merge cells
Aspose. Words merge cells
2022-07-07 22:22:00 【Hey, hey, hey, hey, hey】
By means of Word Add data to the field transaction table ,
When the data is added , You need to merge the specified cells vertically .
//doc:word file 、tableIndex: Table subscript 、startRow: Line start subscript 、endRow: Line termination subscript 、CellIndex: Column subscript
private void MergeCells(Document doc,int tableIndex,int startRow,int endRow,int CellIndex)
{
if(endRow - startRow <= 1) return;
Table table = (Table)doc.GetChild(NodeType.Table,tableIndex,true);
table.Rows[startRow].Cells[CellIndex].CellFormat.VerticalMerge = CellMerge.First;
for(int i = startRow + 1; i <= endRow; i++)
{
table.Rows[i].Cells[CellIndex].CellFormat.VerticalMerge = CellMerge.Previous;
}
}
边栏推荐
- OpenGL jobs - shaders
- Blender exchange group, welcome to the water group ~
- Attitude estimation (complementary filtering)
- Paint basic graphics with custompaint
- Jerry's key to initiate pairing [chapter]
- The latest Android interview collection, Android video extraction audio
- Interview question 01.02 Determine whether it is character rearrangement - auxiliary array algorithm
- Latest Android advanced interview questions summary, Android interview questions and answers
- How does win11 time display the day of the week? How does win11 display the day of the week today?
- Record problems fgui tween animation will be inexplicably killed
猜你喜欢
Use json Stringify() to realize deep copy, be careful, there may be a huge hole
三元表达式、各生成式、匿名函数
Two methods of calling WCF service by C #
Antd date component appears in English
Jerry's about TWS channel configuration [chapter]
Reinforcement learning - learning notes 9 | multi step TD target
用语雀写文章了,功能真心强大!
100million single men and women "online dating", supporting 13billion IPOs
Display optimization when the resolution of easycvr configuration center video recording plan page is adjusted
PKPM 2020软件安装包下载及安装教程
随机推荐
QT compile IOT management platform 39 alarm linkage
JS number is insufficient, and 0 is added
变量与常量
The difference between NPM uninstall and RM direct deletion
海外代理推荐
NVR hard disk video recorder is connected to easycvr through the national standard gb28181 protocol. What is the reason why the device channel information is not displayed?
Record problems fgui tween animation will be inexplicably killed
谈谈制造企业如何制定敏捷的数字化转型策略
What is the difference between the three values of null Nan undefined in JS
双塔模型的最强出装,谷歌又开始玩起“老古董”了?
强化学习-学习笔记9 | Multi-Step-TD-Target
IP网络主动测评系统——X-Vision
NVR硬盤錄像機通過國標GB28181協議接入EasyCVR,設備通道信息不顯示是什麼原因?
【Azure微服务 Service Fabric 】如何转移Service Fabric集群中的种子节点(Seed Node)
Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
Ternary expressions, generative expressions, anonymous functions
Two kinds of updates lost and Solutions
Matplotlib快速入门
ByteDance senior engineer interview, easy to get started, fluent
Solve the problem of uni in uni app Request sent a post request without response.