共用方式為


Factory.GetVstoObject Method

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

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

See Also

Reference

Factory Interface

Microsoft.Office.Tools.Word Namespace