Xceed Words for .NET v3.0 Documentation
InsertDocument(Document,DocumentElement,Boolean,Boolean,MergingMode) Method


Xceed.Document.NET Assembly > Xceed.Document.NET Namespace > Document Class > InsertDocument Method : InsertDocument(Document,DocumentElement,Boolean,Boolean,MergingMode) Method
Represents the document to be inserted. This document will be inserted at the given position in the base document.
Represents the position where the guest document will be inserted.
If the value is true, the guest document will be inserted after the basic position element. If the value is false, the document will be inserted before the basic position element.
If the value is true, each inserted document will be located in its own section. If the value is false, all documents will remain in the same section.
Represents the styles and attributes that will be applied to the final document once the guest document has been inserted.
Syntax
'Declaration
 
Public Overloads Sub InsertDocument( _

   ByVal remote_document As Document, _

   Optional ByVal basePositionElement As DocumentElement, _

   Optional ByVal append As Boolean, _

   Optional ByVal useSectionBreak As Boolean, _

   Optional ByVal mergingMode As MergingMode _

) 
'Usage
 
Dim instance As Document

Dim remote_document As Document

Dim basePositionElement As DocumentElement

Dim append As Boolean

Dim useSectionBreak As Boolean

Dim mergingMode As MergingMode

 

instance.InsertDocument(remote_document, basePositionElement, append, useSectionBreak, mergingMode)
public void InsertDocument( 

   Document remote_document,

   DocumentElement basePositionElement,

   bool append,

   bool useSectionBreak,

   MergingMode mergingMode

)

Parameters

remote_document
Represents the document to be inserted. This document will be inserted at the given position in the base document.
basePositionElement
Represents the position where the guest document will be inserted.
append
If the value is true, the guest document will be inserted after the basic position element. If the value is false, the document will be inserted before the basic position element.
useSectionBreak
If the value is true, each inserted document will be located in its own section. If the value is false, all documents will remain in the same section.
mergingMode
Represents the styles and attributes that will be applied to the final document once the guest document has been inserted.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Document Class
Document Members
Overload List