Freigeben über


Factory.HasVstoObject(_Document) Method

Definition

Returns a value that indicates whether a Document host item exists for the specified Word document object.

public:
 bool HasVstoObject(Microsoft::Office::Interop::Word::_Document ^ document);
public bool HasVstoObject (Microsoft.Office.Interop.Word._Document document);
abstract member HasVstoObject : Microsoft.Office.Interop.Word._Document -> bool
Public Function HasVstoObject (document As _Document) As Boolean

Parameters

document
_Document

The native document object to test. Although this parameter is of type _Document, you typically pass a Document object to this method.

Returns

true if a Document host item exists for the specified Document object; otherwise, false.

Remarks

In a document-level customization, this method returns true only if the native document object is the underlying object of a Microsoft.Office.Tools.Word.Document object in the current customization. Otherwise, this method returns false. For more information, see Programming Document-Level Customizations.

Applies to