问题iTextSharp的设置高度表 [英] Problem setting height for table in iTextSharp

查看:464
本文介绍了问题iTextSharp的设置高度表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了2列的表。在第一行的第二小区欲插入仅具有一个小区的另一个表。问题是,我不能设置第二个表格的高度。它绵延比内容更高度。他的身高是在这里加入他单元格高度相等。

I've created a table with 2 columns. In the second cell of the first row I want to insert another table that have only one cell. The problem is that I cant set the height of the second table. It stretches more than the content height. His height is equal with the cell height where he was added.

感谢。

推荐答案

表中的高度不能设置,表中的的高度由它的单元的高度(可以设置一个单元的高度属性)来确定。如果你想舒展这个表你可以空单元格添加到第二个表。

The height of the table cannot be set, the height of the table is determined by the height of its cells (you can set the height-property of a cell). You could add an empty cell to the second table if you want to stretch this table.

这篇关于问题iTextSharp的设置高度表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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