We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 922a58c commit 0ef41adCopy full SHA for 0ef41ad
1 file changed
Types/OpenXML.Word.File/get_Document.ps1
@@ -4,6 +4,9 @@
4
.DESCRIPTION
5
Gets the `/word/document.xml` within a Word File.
6
#>
7
+[OutputType([xml])]
8
+param()
9
+
10
if ($null -ne $this.'#document') { return $this.'#document'}
11
12
if (-not $this.PartExists) { return }
@@ -31,6 +34,9 @@ if ($documentXml) {
31
34
$documentXml.psobject.properties.add(
32
35
[psnoteproperty]::new('OpenXML', $this), $false
33
36
)
37
+ $documentXml.psobject.properties.add(
38
+ [psnoteproperty]::new('Part', $documentPart), $false
39
+ )
40
$this.psobject.properties.add(
41
[psnoteproperty]::new('#document', $documentXml), $false
42
0 commit comments