本文介绍了将一个FlowDocument复制到第二个FlowDocument的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将一个FlowDocument的内容复制到另一个FlowDocument下面是我尝试
foreach(var blk in fd1 .blocks)
{
fd2.Blocks.Add(blk);
}
fd1是FlowDocument1,fd2是FlowDocument2。
但我得到以下错误。
集合被修改;
解决方案
这解决了问题
Arvind
How can i copy the contents of one FlowDocument to another FlowDocument below is what i tryed
foreach (var blk in fd1.Blocks)
{
fd2.Blocks.Add(blk);
}
fd1 is FlowDocument1 and fd2 is FlowDocument2.
But i get the below error.
Collection was modified; enumeration operation may not execute.
Thanks
Arvind
解决方案
This solved the problem
http://social.msdn.microsoft.com/Forums/en/wpf/thread/f4b26d9b-5b74-446b-85e7-e49e519380ad
Arvind
这篇关于将一个FlowDocument复制到第二个FlowDocument的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!