Skip to content

Commit fc838d3

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: OpenXML.Excel.File.get_SharedString ( Fixes #25 )
1 parent 770759a commit fc838d3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

OpenXML.types.ps1xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,26 @@ return $this.'.Parts'
147147
<Type>
148148
<Name>OpenXML.Excel.File</Name>
149149
<Members>
150+
<AliasProperty>
151+
<Name>SharedStrings</Name>
152+
<ReferencedMemberName>SharedString</ReferencedMemberName>
153+
</AliasProperty>
154+
<ScriptProperty>
155+
<Name>SharedString</Name>
156+
<GetScriptBlock>
157+
&lt;#
158+
.SYNOPSIS
159+
Gets an Excel File's Shared Strings
160+
.DESCRIPTION
161+
Gets an Excel File's Shared Strings.
162+
163+
In Excel, any cell with text in it really contains an index of it's shared string.
164+
.EXAMPLE
165+
Get-OpenXML ./Examples/HelloWorld.xlsx | Select -Expand SharedString
166+
#&gt;
167+
,@($this.Parts.'/xl/sharedStrings.xml'.Content.sst.si.t)
168+
</GetScriptBlock>
169+
</ScriptProperty>
150170
<ScriptProperty>
151171
<Name>Worksheets</Name>
152172
<GetScriptBlock>

0 commit comments

Comments
 (0)