Copying one FlowDocument to Second FlowDocument
问题 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 回答1: Because each Block is 'owned' by a FlowDocument, it cannot just be added to another. You must serialize it and then deserialize it, which breaks the bond with the original FlowDocument,