Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-DiagramOptionsNodes

Namespace PSWriteHTML

Creates a custom object representing options for diagram nodes.

Remarks

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

Examples

Authored help example

EXAMPLE 1


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


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.
        

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.

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 <circle>] [-Size <Nullable`1>] [-WidthConstraintMaximum <Nullable`1>] [-WidthConstraintMinimum <Nullable`1>] [<CommonParameters>]
#
Parameter set: Shape

Parameters

BorderWidth Nullable`1 optionalposition: namedpipeline: False
Specifies the width of the border around the node.
BorderWidthSelected Nullable`1 optionalposition: namedpipeline: False
Specifies the width of the border around the node when selected.
BrokenImage String optionalposition: namedpipeline: False
Specifies the image to display if the node image is broken.
Chosen Nullable`1 optionalposition: namedpipeline: False
Indicates whether the node is chosen.
ColorBackground String optionalposition: namedpipeline: False
Specifies the background color of the node.
ColorBorder String optionalposition: namedpipeline: False
Specifies the color of the node border.
ColorHighlightBackground String optionalposition: namedpipeline: False
Specifies the background color of the node when highlighted.
ColorHighlightBorder String optionalposition: namedpipeline: False
Specifies the color of the node border when highlighted.
ColorHoverBackground String optionalposition: namedpipeline: False
Specifies the background color of the node when hovered over.
ColorHoverBorder String optionalposition: namedpipeline: False
Specifies the color of the node border when hovered over.
FixedX Nullable`1 optionalposition: namedpipeline: False
Indicates whether the node's X position is fixed.
FixedY Nullable`1 optionalposition: namedpipeline: False
Indicates whether the node's Y position is fixed.
FontAlign String optionalposition: namedpipeline: Falsevalues: 2
Specifies the alignment of the node's text (center or left).
Possible values: center, left
FontBackground String optionalposition: namedpipeline: False
Specifies the background color of the node's font.
FontColor String optionalposition: namedpipeline: False
Specifies the color of the node's font.
FontMulti String optionalposition: namedpipeline: Falsevalues: 4
Specifies the multi-line mode for the node's text (false, true, markdown, html).
Possible values: false, true, markdown, html
FontName String optionalposition: namedpipeline: False
Specifies the font family of the node text.
FontSize Nullable`1 optionalposition: namedpipeline: False
Specifies the font size of the node text in pixels.
FontStrokeColor String optionalposition: namedpipeline: False
Specifies the stroke color of the node's font.
FontStrokeWidth Nullable`1 optionalposition: namedpipeline: False
Specifies the stroke width of the node's font.
FontVAdjust Nullable`1 optionalposition: namedpipeline: False
Specifies the vertical adjustment of the node's text.
HeightConstraintMinimum Nullable`1 optionalposition: namedpipeline: False
Specifies the minimum height constraint for the node.
HeightConstraintVAlign String optionalposition: namedpipeline: Falsevalues: 3
Specifies the vertical alignment of the node within its height constraint (top, middle, bottom).
Possible values: top, middle, bottom
Margin Nullable`1 optionalposition: namedpipeline: False
Specifies the margin around the node on all sides.
MarginBottom Nullable`1 optionalposition: namedpipeline: False
Specifies the bottom margin around the node.
MarginLeft Nullable`1 optionalposition: namedpipeline: False
Specifies the left margin around the node.
MarginRight Nullable`1 optionalposition: namedpipeline: False
Specifies the right margin around the node.
MarginTop Nullable`1 optionalposition: namedpipeline: False
Specifies the top margin around the node.
Shape String optionalposition: namedpipeline: Falsevalues: 12
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`1 optionalposition: namedpipeline: False
Specifies the size of the node.
WidthConstraintMaximum Nullable`1 optionalposition: namedpipeline: False
Specifies the maximum width constraint for the node.
WidthConstraintMinimum Nullable`1 optionalposition: namedpipeline: False
Specifies the minimum width constraint for the node.