Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Imports a document fragment into the Bookmark.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Sub ImportFragment ( _
FileName As String, _
MatchDestination As Boolean _
)
void ImportFragment(
string FileName,
bool MatchDestination
)
Parameters
FileName
Type: System.StringSpecifies the full path of the document fragment to import.
MatchDestination
Type: System.Booleantrue 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.