试试这个:
document.Sections[0].Blocks[1].Content.End.InsertRange(financialAnalysisDocument.Content);
但是,由于
financialAnalysisDocument.Content
是整个 ContentRange
的 DocumentModel
,这将导致在“第 2 段”和“第 4 段”之间插入 Section
元素。
我不确定这是否是您想要的,所以也许这更适合您的需求:
document.Sections[0].Blocks[1].Content.End.InsertRange(
financialAnalysisDocument.Sections[0].Blocks.Content);