我正在使用以下内容创建表:
Dim ColWidths() As Single = {10.0, 20.0, 70.0}
Dim tbl As Table = New Table(UnitValue.PERCENT, ColWidths, False)
但是出现编译时错误:
Overload resolution failed because no accessible 'New' accepts this number of arguments.
但是,此构造函数与文档中定义的第四个相同。
我在做什么错了?
编辑1
http://itextsupport.com/apidocs/itext7/latest/
在左下方的ListBox中,向下滑动并单击Table。 在右窗格中,向下滑动到“构造函数” 看一下第四个构造函数:
Table(UnitValue[] columnWidths, boolean largeTable)
Constructs a Table with the preferable column widths.