Partager via


Bookmark.ImportFragment(String, Boolean) Method

Definition

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.

Applies to