Share via


Document Constructor (2007 System)

This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.

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

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New Document()
public Document()
public:
Document()
public function Document()

Remarks

You cannot use the Document constructor to create a new Document host item.

Starting in Visual Studio 2008 Service Pack 1 (SP1), you can create Document host items programmatically in an application-level add-in by using the GetVstoObject method of any Document object. For more information, see Extending Word Documents and Excel Workbooks in Application-Level Add-ins at Run Time.

Document host items cannot be created programmatically in document-level projects. For more information, see Document Host Item.

.NET Framework Security

See Also

Reference

Document Class

Document Members

Document Overload

Microsoft.Office.Tools.Word Namespace