File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Gets any Text Attributes
4+ . DESCRIPTION
5+ Gets any attributes associated with the Turtle text
6+
7+ #>
8+ if (-not $this .' .TextAttribute' ) {
9+ $this | Add-Member NoteProperty ' .TextAttribute' ([Ordered ]@ {}) - Force
10+ }
11+ return $this .' .TextAttribute'
Original file line number Diff line number Diff line change 1+ <#
2+ . SYNOPSIS
3+ Sets text attributes
4+ . DESCRIPTION
5+ Sets any attributes associated with the turtle text.
6+
7+ These will become the attributes on the `<text>` element.
8+ #>
9+ param (
10+ # The text attributes.
11+ [Collections.IDictionary ]
12+ $TextAttribute = [Ordered ]@ {}
13+ )
14+
15+ if (-not $this .' .TextAttribute' ) {
16+ $this | Add-Member - MemberType NoteProperty - Name ' .TextAttribute' - Value ([Ordered ]@ {}) - Force
17+ }
18+ foreach ($key in $TextAttribute.Keys ) {
19+ $this .' .TextAttribute' [$key ] = $TextAttribute [$key ]
20+ }
You can’t perform that action at this time.
0 commit comments