# New-DiagramOptionsNodes

Creates a custom object representing options for diagram nodes.

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 a custom object representing options for diagram nodes.

## Syntax

```
New-DiagramOptionsNodes
[-BorderWidth <Nullable`1>]
[-BorderWidthSelected <Nullable`1>]
[-BrokenImage <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>]
[-Margin <Nullable`1>]
[-MarginBottom <Nullable`1>]
[-MarginLeft <Nullable`1>]
[-MarginRight <Nullable`1>]
[-MarginTop <Nullable`1>]
[-Shape <String>]
[-Size <Nullable`1>]
[-WidthConstraintMaximum <Nullable`1>]
[-WidthConstraintMinimum <Nullable`1>]
[<CommonParameters>]
```

[#](#member-2245f157659ea88c16bd17f6)

Parameter set: `Shape`

## Description

This function creates a custom object with various settings for diagram nodes, such as border width, colors, font styles, shape, constraints, and margins.

## Examples

### Example 1

```powershell
New-DiagramOptionsNodes -BorderWidth 1 -BorderWidthSelected 2 -ColorBorder '#2B7CE9' -ColorBackground '#97C2FC' -Shape 'circle' -Size 50
Creates a new diagram node with specified border widths, colors, shape, and size.
```

### Example 2

```powershell
New-DiagramOptionsNodes -FontColor '#000000' -FontSize 12 -FontName 'Arial' -Shape 'square' -Size 30
Creates a new diagram node with specified font color, size, font family, shape, and size.
```

## Parameters

**-BorderWidth Nullable<T> optional**

Specifies the width of the border around the node.

**-BorderWidthSelected Nullable<T> optional**

Specifies the width of the border around the node when selected.

**-BrokenImage String optional**

Specifies the image to display if the node image is broken.

**-Chosen Nullable<T> optional**

Indicates whether the node is chosen.

**-ColorBackground String optional**

Specifies the background color of the node.

**-ColorBorder String optional**

Specifies the color of the node border.

**-ColorHighlightBackground String optional**

Specifies the background color of the node when highlighted.

**-ColorHighlightBorder String optional**

Specifies the color of the node border when highlighted.

**-ColorHoverBackground String optional**

Specifies the background color of the node when hovered over.

**-ColorHoverBorder String optional**

Specifies the color of the node border when hovered over.

**-FixedX Nullable<T> optional**

Indicates whether the node's X position is fixed.

**-FixedY Nullable<T> optional**

Indicates whether the node's Y position is fixed.

**-FontAlign String optional**

Specifies the alignment of the node's text (center or left).

Possible values: `center`, `left`

**-FontBackground String optional**

Specifies the background color of the node's font.

**-FontColor String optional**

Specifies the color of the node's font.

**-FontMulti String optional**

Specifies the multi-line mode for the node's text (false, true, markdown, html).

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

**-FontName String optional**

Specifies the font family of the node text.

**-FontSize Nullable<T> optional**

Specifies the font size of the node text in pixels.

**-FontStrokeColor String optional**

Specifies the stroke color of the node's font.

**-FontStrokeWidth Nullable<T> optional**

Specifies the stroke width of the node's font.

**-FontVAdjust Nullable<T> optional**

Specifies the vertical adjustment of the node's text.

**-HeightConstraintMinimum Nullable<T> optional**

Specifies the minimum height constraint for the node.

**-HeightConstraintVAlign String optional**

Specifies the vertical alignment of the node within its height constraint (top, middle, bottom).

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

**-Margin Nullable<T> optional**

Specifies the margin around the node on all sides.

**-MarginBottom Nullable<T> optional**

Specifies the bottom margin around the node.

**-MarginLeft Nullable<T> optional**

Specifies the left margin around the node.

**-MarginRight Nullable<T> optional**

Specifies the right margin around the node.

**-MarginTop Nullable<T> optional**

Specifies the top margin around the node.

**-Shape String optional**

Specifies the shape of the node (circle, dot, diamond, ellipse, database, box, square, triangle, triangleDown, text, star, hexagon).

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

**-Size Nullable<T> optional**

Specifies the size of the node.

**-WidthConstraintMaximum Nullable<T> optional**

Specifies the maximum width constraint for the node.

**-WidthConstraintMinimum Nullable<T> optional**

Specifies the minimum width constraint for the node.

## 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:D9A2A0364E6A25C23BC3B29BBBCB05F3E5D25A0C22FA543A334EB092B1DE908E -->
