开发者

itext pdf help in fx20

Why wouldn't the following work?

phrase.AddAll(new ICollection<Chunk>[] { noteChunk, noteAttributeChunk });

Error 8 Cannot implicitly convert type 'iTextSharp.text.Chunk' to 'System.Collections.Generic.ICollection'.

Just curious,

r开发者_开发知识库od.


You need to a generic parameter to ICollection such as ICollection<Chunk>, but the problem is that ICollection is an interface and not a class. You should probably do this instead:

phrase.AddAll(new Chunk[] { noteChunk, noteAttributeChunk });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜