none
如何合并两个 FlowDocument对象为一个? RRS feed

  • 问题

  •  private FlowDocument FlowDocumentJoint(FlowDocument doc1, FlowDocument doc2)
            {
                FlowDocument FlowDocument = new FlowDocument();
                foreach (Block item in doc1.Blocks)   //这个有问题,报错
                {
                    FlowDocument.Blocks.Add(item);
                }
                foreach (Block item in doc2.Blocks)
                {
                    FlowDocument.Blocks.Add(item);
                }
                return FlowDocument;
            }
    2011年4月3日 14:24

答案