Udostępnij za pośrednictwem


Factory.HasVstoObject Method

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

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Function HasVstoObject ( _
    document As _Document _
) As Boolean
bool HasVstoObject(
    _Document document
)

Parameters

Return Value

Type: System.Boolean
true if a Microsoft.Office.Tools.Word.Document host item exists for the specified Microsoft.Office.Interop.Word.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 Getting Extended Objects from Native Office Objects in Document-Level Customizations.

.NET Framework Security

See Also

Reference

Factory Interface

Microsoft.Office.Tools.Word Namespace