Factory.HasVstoObject(_Document) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.