Skip to content

Commit 44370e3

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Gradient.ToString ( Fixes #17 )
1 parent 918f442 commit 44370e3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Gradient.types.ps1xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
<Name>GradientTypes</Name>
88
<ReferencedMemberName>GradientType</ReferencedMemberName>
99
</AliasProperty>
10+
<ScriptMethod>
11+
<Name>ToString</Name>
12+
<Script>
13+
&lt;#
14+
.SYNOPSIS
15+
Stringifies the gradient
16+
.DESCRIPTION
17+
Gets the gradient as a string. By default, returns the CSS gradient.
18+
#&gt;
19+
return "$($this.CSS)"
20+
</Script>
21+
</ScriptMethod>
1022
<ScriptProperty>
1123
<Name>CSS</Name>
1224
<GetScriptBlock>

0 commit comments

Comments
 (0)