Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.