Skip to content

Commit 3dae7c1

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: OpenXML.Excel.File.get_Worksheets ( Fixes #5 )
Including OpenXML in result
1 parent d7f98fe commit 3dae7c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OpenXML.types.ps1xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,13 @@ foreach ($worksheet in $worksheetsInOrder) {
186186
$worksheetName = "Sheet$($worksheetCounter + 1)"
187187
}
188188
$worksheetObject[$worksheetName] = [PSCustomObject][Ordered]@{
189-
PSTypeName = 'OpenXML.Excel.Worksheet'
189+
PSTypeName = 'OpenXML.Excel.Worksheet'
190190
FilePath = $this.FilePath
191191
Uri = $worksheet.Uri
192192
WorksheetName = $worksheetName
193193
Content = $worksheet.Content
194194
ContentType = $worksheet.ContentType
195+
OpenXML = $this
195196
}
196197
$worksheetCounter++
197198
}

0 commit comments

Comments
 (0)