Writes a SVG element
Writes a Scalable Vector Graphics element.
The name of the SVG element.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
true | 1 | false |
A dictionary of attributes.
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | 2 | true (ByPropertyName) |
A dictionary of data.
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | 3 | true (ByPropertyName) |
An object containing content. If this content is XML, it will be added as a child element.
Type | Required | Position | PipelineInput |
---|---|---|---|
[PSObject] |
false | 4 | true (ByPropertyName) |
One or more child elements. These will be treated as if they were content.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[Object] |
false | 5 | true (ByPropertyName) | Child |
A comment that will appear before the element.
Type | Required | Position | PipelineInput | Aliases |
---|---|---|---|---|
[String] |
false | 6 | true (ByPropertyName) | Comments |
A dictionary or object containing event handlers. Each key or property name will be the name of the event Each value will be the handler.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Object] |
false | 7 | true (ByPropertyName) |
An output path.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | 8 | true (ByPropertyName) |
While this function can be used directly, it is designed to be the core function that other SVG creation functions call.
Write-SVG [-ElementName] <String> [[-Attribute] <IDictionary>] [[-Data] <IDictionary>] [[-Content] <PSObject>] [[-Children] <Object>] [[-Comment] <String>] [[-On] <Object>] [[-OutputPath] <String>] [<CommonParameters>]