Bookmark.ImportFragment(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Imports a document fragment into the Bookmark.
public void ImportFragment (string FileName, bool MatchDestination = false);
abstract member ImportFragment : string * bool -> unit
Public Sub ImportFragment (FileName As String, Optional MatchDestination As Boolean = false)
Parameters
- FileName
- String
Specifies the full path of the document fragment to import.
- MatchDestination
- Boolean
true
to match the destination formatting; otherwise, false
. If you specify false
, the imported document fragment retains the formatting in the original document. The default is false
.
Remarks
This method replaces the contents of the Bookmark. To stop this from occurring, use the Collapse method before using this method.