在iTextsharp中将一个单元格排列在另一个单元格下方 [英] Arrange one cell below another in iTextsharp

查看:74
本文介绍了在iTextsharp中将一个单元格排列在另一个单元格下方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iTextsharp,我有两个单元格,我想把一个单元格放在另一个单元格下面,但我无法做到,两个单元格并排放置。



I am using iTextsharp and i have two cells and i want to put one cell below another but i am unable to do it,the two cells are coming side by side.

<pre lang="c#"> Cell nmj = new iTextSharp.text.Cell("Spectrum");//CSY
                        nmj.HorizontalAlignment = Element.ALIGN_RIGHT;
                        nmj.BorderWidth = 0;
                        nmj.Colspan = 12;
                        dt.AddCell(nmj);
                        Cell sjj = new iTextSharp.text.Cell("0.42 in/s");
                        sjj.HorizontalAlignment = Element.ALIGN_RIGHT;
                        sjj.BorderWidth = 0;
                        nmj.Colspan = 12;
                        dt.AddCell(sjj);
                        document.Add(dt);

推荐答案

这篇关于在iTextsharp中将一个单元格排列在另一个单元格下方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆