共用方式為


Factory.CreateDocument 方法

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

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word (在 Microsoft.Office.Tools.Word.dll 中)

語法

'宣告
Function CreateDocument ( _
    serviceProvider As IServiceProvider, _
    hostItemProvider As IHostItemProvider, _
    primaryCookie As String, _
    identifier As String, _
    containerComponent As Object, _
    extension As IDocumentExtension _
) As Document
Document CreateDocument(
    IServiceProvider serviceProvider,
    IHostItemProvider hostItemProvider,
    string primaryCookie,
    string identifier,
    Object containerComponent,
    IDocumentExtension extension
)

參數

傳回值

型別:Microsoft.Office.Tools.Word.Document

.NET Framework 安全性

請參閱

參考

Factory 介面

Microsoft.Office.Tools.Word 命名空間