SpreadsheetDocument.AddWorkbookPart Method
Created the WorkbookPart and add it to this document.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
Public Function AddWorkbookPart As WorkbookPart
'使用
Dim instance As SpreadsheetDocument
Dim returnValue As WorkbookPart
returnValue = instance.AddWorkbookPart()
public WorkbookPart AddWorkbookPart()
Return Value
Type: DocumentFormat.OpenXml.Packaging.WorkbookPart
The newly added WorkbookPart.