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.
Returns a Microsoft.Office.Tools.Word.Document host item that extends the functionality of the specified native document object.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Function GetVstoObject ( _
document As _Document _
) As Document
Document GetVstoObject(
_Document document
)
Parameters
document
Type: Microsoft.Office.Interop.Word._DocumentThe native document object for which to retrieve the extended object. Although this parameter is of type Microsoft.Office.Interop.Word._Document, you typically pass a Microsoft.Office.Interop.Word.Document object to this method.
Return Value
Type: Microsoft.Office.Tools.Word.Document
The host item that extends the functionality of the native document object, if the native document is the underlying object of a Microsoft.Office.Tools.Word.Document object in the current document-level customization; otherwise, nulla null reference (Nothing in Visual Basic).
Remarks
In a document-level customization, you cannot use this method to generate a new extended Microsoft.Office.Tools.Word.Document object for a native document object. You can use this method only to get a Microsoft.Office.Tools.Word.Document object that is in the current customization. For more information, see Programming Document-Level Customizations.
.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.