Skip to content

Commit 0ef41ad

Browse files
feat: OpenXML.Word.File.get_Document ( Fixes #44 )
Propagating part
1 parent 922a58c commit 0ef41ad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Types/OpenXML.Word.File/get_Document.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.DESCRIPTION
55
Gets the `/word/document.xml` within a Word File.
66
#>
7+
[OutputType([xml])]
8+
param()
9+
710
if ($null -ne $this.'#document') { return $this.'#document'}
811

912
if (-not $this.PartExists) { return }
@@ -31,6 +34,9 @@ if ($documentXml) {
3134
$documentXml.psobject.properties.add(
3235
[psnoteproperty]::new('OpenXML', $this), $false
3336
)
37+
$documentXml.psobject.properties.add(
38+
[psnoteproperty]::new('Part', $documentPart), $false
39+
)
3440
$this.psobject.properties.add(
3541
[psnoteproperty]::new('#document', $documentXml), $false
3642
)

0 commit comments

Comments
 (0)