File tree Expand file tree Collapse file tree
Types/OpenXML.Word.TableRow Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Gets word table columns
4+ . DESCRIPTION
5+ Gets columns in a word table
6+ #>
7+ foreach ($column in $this.tr ) {
8+ if (-not $column.trPr.psobject.properties ) { continue }
9+ if ($column.trPr.psobject.properties [' tblHeader' ]) { continue }
10+
11+ if ($column.pstypenames -ne ' OpenXML.Word.TableColumn' ) {
12+ $column.pstypenames.insert (0 , ' OpenXML.Word.TableColumn' )
13+ }
14+ if (-not $column.FilePath ) {
15+ $column.psobject.properties.add (
16+ [psnoteproperty ]::new(" FilePath" , $this.FilePath ), $false
17+ )
18+ }
19+ if (-not $column.OpenXML ) {
20+ $column.psobject.properties.add (
21+ [psnoteproperty ]::new(" OpenXML" , $this.OpenXML ), $false
22+ )
23+ }
24+ if (-not $column.Table ) {
25+ $column.psobject.properties.add (
26+ [psnoteproperty ]::new(" Table" , $this.Table ), $false
27+ )
28+ }
29+
30+ if (-not $column.Row ) {
31+ $column.psobject.properties.add (
32+ [psnoteproperty ]::new(" Row" , $this ), $false
33+ )
34+ }
35+
36+ $column
37+ }
You can’t perform that action at this time.
0 commit comments