# New-DiagramNode

Creates nodes on a diagram. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteHTML API Reference.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates nodes on a diagram

## Syntax

```
New-DiagramNode
[-ArrowsFromEnabled]
[-ArrowsMiddleEnabled]
[-ArrowsToEnabled]
[-BorderWidth <Nullable`1>]
[-BorderWidthSelected <Nullable`1>]
[-Chosen <Nullable`1>]
[-ColorBackground <String>]
[-ColorBorder <String>]
[-ColorHighlightBackground <String>]
[-ColorHighlightBorder <String>]
[-ColorHoverBackground <String>]
[-ColorHoverBorder <String>]
[-FixedX <Nullable`1>]
[-FixedY <Nullable`1>]
[-FontAlign <center|left>]
[-FontBackground <String>]
[-FontColor <String>]
[-FontMulti <false|true|markdown|html>]
[-FontName <String>]
[-FontSize <Nullable`1>]
[-FontStrokeColor <String>]
[-FontStrokeWidth <Nullable`1>]
[-FontVAdjust <Nullable`1>]
[-HeightConstraintMinimum <Nullable`1>]
[-HeightConstraintVAlign <top|middle|bottom>]
[-HtmlTextBox <ScriptBlock>]
[-Id <String>]
[-Label <String>]
[-Level <Nullable`1>]
[-LinkColor <String>]
[-Shape <String>]
[-Size <Nullable`1>]
[-Title <String>]
[-To <String[]>]
[-WidthConstraintMaximum <Nullable`1>]
[-WidthConstraintMinimum <Nullable`1>]
[-X <Nullable`1>]
[-Y <Nullable`1>]
[<CommonParameters>]
```

[#](#member-9fd3dca54ea4352b35c435ed)

Parameter set: `Shape`

```
New-DiagramNode
[-ArrowsFromEnabled]
[-ArrowsMiddleEnabled]
[-ArrowsToEnabled]
[-BorderWidth <Nullable`1>]
[-BorderWidthSelected <Nullable`1>]
[-BrokenImages <String>]
[-Chosen <Nullable`1>]
[-ColorBackground <String>]
[-ColorBorder <String>]
[-ColorHighlightBackground <String>]
[-ColorHighlightBorder <String>]
[-ColorHoverBackground <String>]
[-ColorHoverBorder <String>]
[-FixedX <Nullable`1>]
[-FixedY <Nullable`1>]
[-FontAlign <center|left>]
[-FontBackground <String>]
[-FontColor <String>]
[-FontMulti <false|true|markdown|html>]
[-FontName <String>]
[-FontSize <Nullable`1>]
[-FontStrokeColor <String>]
[-FontStrokeWidth <Nullable`1>]
[-FontVAdjust <Nullable`1>]
[-HeightConstraintMinimum <Nullable`1>]
[-HeightConstraintVAlign <top|middle|bottom>]
[-HtmlTextBox <ScriptBlock>]
[-Id <String>]
[-Image <Uri>]
[-ImageType <squareImage|circularImage>]
[-Label <String>]
[-Level <Nullable`1>]
[-LinkColor <String>]
[-Size <Nullable`1>]
[-Title <String>]
[-To <String[]>]
[-WidthConstraintMaximum <Nullable`1>]
[-WidthConstraintMinimum <Nullable`1>]
[-X <Nullable`1>]
[-Y <Nullable`1>]
[<CommonParameters>]
```

[#](#member-5429d80d1e5d3eb116737afc)

Parameter set: `Image`

```
New-DiagramNode
[-ArrowsFromEnabled]
[-ArrowsMiddleEnabled]
[-ArrowsToEnabled]
[-BorderWidth <Nullable`1>]
[-BorderWidthSelected <Nullable`1>]
[-Chosen <Nullable`1>]
[-FixedX <Nullable`1>]
[-FixedY <Nullable`1>]
[-FontAlign <center|left>]
[-FontBackground <String>]
[-FontColor <String>]
[-FontMulti <false|true|markdown|html>]
[-FontName <String>]
[-FontSize <Nullable`1>]
[-FontStrokeColor <String>]
[-FontStrokeWidth <Nullable`1>]
[-FontVAdjust <Nullable`1>]
[-HeightConstraintMinimum <Nullable`1>]
[-HeightConstraintVAlign <top|middle|bottom>]
[-HtmlTextBox <ScriptBlock>]
[-IconAsImage]
[-IconColor <String>]
[-IconSolid <String>]
[-Id <String>]
[-Label <String>]
[-Level <Nullable`1>]
[-LinkColor <String>]
[-Size <Nullable`1>]
[-Title <String>]
[-To <String[]>]
[-WidthConstraintMaximum <Nullable`1>]
[-WidthConstraintMinimum <Nullable`1>]
[-X <Nullable`1>]
[-Y <Nullable`1>]
[<CommonParameters>]
```

[#](#member-7d1ed765d16a63e30d0972da)

Parameter set: `FontAwesomeSolid`

```
New-DiagramNode
[-ArrowsFromEnabled]
[-ArrowsMiddleEnabled]
[-ArrowsToEnabled]
[-BorderWidth <Nullable`1>]
[-BorderWidthSelected <Nullable`1>]
[-Chosen <Nullable`1>]
[-FixedX <Nullable`1>]
[-FixedY <Nullable`1>]
[-FontAlign <center|left>]
[-FontBackground <String>]
[-FontColor <String>]
[-FontMulti <false|true|markdown|html>]
[-FontName <String>]
[-FontSize <Nullable`1>]
[-FontStrokeColor <String>]
[-FontStrokeWidth <Nullable`1>]
[-FontVAdjust <Nullable`1>]
[-HeightConstraintMinimum <Nullable`1>]
[-HeightConstraintVAlign <top|middle|bottom>]
[-HtmlTextBox <ScriptBlock>]
[-IconAsImage]
[-IconColor <String>]
[-IconRegular <String>]
[-Id <String>]
[-Label <String>]
[-Level <Nullable`1>]
[-LinkColor <String>]
[-Size <Nullable`1>]
[-Title <String>]
[-To <String[]>]
[-WidthConstraintMaximum <Nullable`1>]
[-WidthConstraintMinimum <Nullable`1>]
[-X <Nullable`1>]
[-Y <Nullable`1>]
[<CommonParameters>]
```

[#](#member-bc8f0451530cdadc0d8cf2a7)

Parameter set: `FontAwesomeRegular`

```
New-DiagramNode
[-ArrowsFromEnabled]
[-ArrowsMiddleEnabled]
[-ArrowsToEnabled]
[-BorderWidth <Nullable`1>]
[-BorderWidthSelected <Nullable`1>]
[-Chosen <Nullable`1>]
[-FixedX <Nullable`1>]
[-FixedY <Nullable`1>]
[-FontAlign <center|left>]
[-FontBackground <String>]
[-FontColor <String>]
[-FontMulti <false|true|markdown|html>]
[-FontName <String>]
[-FontSize <Nullable`1>]
[-FontStrokeColor <String>]
[-FontStrokeWidth <Nullable`1>]
[-FontVAdjust <Nullable`1>]
[-HeightConstraintMinimum <Nullable`1>]
[-HeightConstraintVAlign <top|middle|bottom>]
[-HtmlTextBox <ScriptBlock>]
[-IconAsImage]
[-IconBrands <String>]
[-IconColor <String>]
[-Id <String>]
[-Label <String>]
[-Level <Nullable`1>]
[-LinkColor <String>]
[-Size <Nullable`1>]
[-Title <String>]
[-To <String[]>]
[-WidthConstraintMaximum <Nullable`1>]
[-WidthConstraintMinimum <Nullable`1>]
[-X <Nullable`1>]
[-Y <Nullable`1>]
[<CommonParameters>]
```

[#](#member-faea90386fcdb3309c46e4df)

Parameter set: `FontAwesomeBrands`

## Examples

### Example 1

```powershell
An example
```

## Parameters

**-ArrowsFromEnabled SwitchParameter optional**

Parameter description

**-ArrowsMiddleEnabled SwitchParameter optional**

Parameter description

**-ArrowsToEnabled SwitchParameter optional**

Parameter description

**-BorderWidth Nullable<T> optional**

Parameter description

**-BorderWidthSelected Nullable<T> optional**

Parameter description

**-Chosen Nullable<T> optional**

Parameter description

**-ColorBackground String optionalsets: Shape, Image**

Parameter description

**-ColorBorder String optionalsets: Shape, Image**

Parameter description

**-ColorHighlightBackground String optionalsets: Shape, Image**

Parameter description

**-ColorHighlightBorder String optionalsets: Shape, Image**

Parameter description

**-ColorHoverBackground String optionalsets: Shape, Image**

Parameter description

**-ColorHoverBorder String optionalsets: Shape, Image**

Parameter description

**-FixedX Nullable<T> optional**

Parameter description

**-FixedY Nullable<T> optional**

Parameter description

**-FontAlign String optional**

This can be set to 'left' to make the label left-aligned. Otherwise, defaults to 'center'.

Possible values: `center`, `left`

**-FontBackground String optional**

When not undefined but a color string, a background rectangle will be drawn behind the label in the supplied color.

**-FontColor String optional**

Color of the label text.

**-FontMulti String optional**

If false, the label is treated as pure text drawn with the base font. If true or 'html' the label may be multifonted, with bold, italic and code markup, interpreted as html. If the value is 'markdown' or 'md' the label may be multifonted, with bold, italic and code markup, interpreted as markdown. The bold, italic, bold-italic and monospaced fonts may be set up under in the font.bold, font.ital, font.boldital and font.mono properties, respectively.

Possible values: `false`, `true`, `markdown`, `html`

**-FontName String optional**

Font face (or font family) of the label text.

**-FontSize Nullable<T> optional**

Size of the label text.

**-FontStrokeColor String optional**

This is the color of the stroke assuming the value for stroke is higher than 0.

**-FontStrokeWidth Nullable<T> optional**

As an alternative to the background rectangle, a stroke can be drawn around the text. When a value higher than 0 is supplied, the stroke will be draw

**-FontVAdjust Nullable<T> optional**

Parameter description

**-HeightConstraintMinimum Nullable<T> optional**

Parameter description

**-HeightConstraintVAlign String optional**

Parameter description

Possible values: `top`, `middle`, `bottom`

**-HtmlTextBox ScriptBlock optional**

Experimental TextBox to put HTML instead of Image using SVG

**-Id String optional**

Id of a node. If not set, label will be used as Id.

**-Label String optional**

Label for a diagram

**-Level Nullable<T> optional**

Parameter description

**-LinkColor String optionalaliases: EdgeColor**

Parameter description

**-Shape String optionalsets: Shape**

Parameter description

Possible values: `circle`, `dot`, `diamond`, `ellipse`, `database`, `box`, `square`, `triangle`, `triangleDown`, `text`, `star`, `hexagon`

**-Size Nullable<T> optional**

The size is used to determine the size of node shapes that do not have the label inside of them. These shapes are: image, circularImage, diamond, dot, star, triangle, triangleDown, hexagon, square and icon

**-Title String optional**

Label that shows up when hovering over node

**-To String[] optional**

Parameter description

**-WidthConstraintMaximum Nullable<T> optional**

Parameter description

**-WidthConstraintMinimum Nullable<T> optional**

Parameter description

**-X Nullable<T> optional**

Parameter description

**-Y Nullable<T> optional**

Parameter description

**-BrokenImages String optionalsets: Image**

Parameter description

**-Image Uri optionalsets: Image**

Parameter description

**-ImageType String optionalsets: Image**

Parameter description

Possible values: `squareImage`, `circularImage`

**-IconAsImage SwitchParameter optionalsets: FontAwesomeSolid, FontAwesomeRegular, FontAwesomeBrands**

Parameter description

**-IconColor String optionalsets: FontAwesomeSolid, FontAwesomeRegular, FontAwesomeBrands**

Parameter description

**-IconSolid String optionalsets: FontAwesomeSolid**

Parameter description

**-IconRegular String optionalsets: FontAwesomeRegular**

Parameter description

**-IconBrands String optionalsets: FontAwesomeBrands**

Parameter description

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:486DB7271B318D015831AF111EF9460FAE2D81E168596D418AE5A1B3DD5F689C -->
