Project

PSWriteHTML

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

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-DiagramOptionsLinks

Module PSWriteHTML

Creates a new set of options for diagram edges in a diagram.

Syntax

Description

This function creates a new set of options for diagram edges in a diagram. It allows customization of various properties such as arrows, colors, fonts, and constraints for diagram edges.

Examples

Authored help example

EXAMPLE 1

New-DiagramOptionsLinks -ArrowsToEnabled $true -ArrowsToScaleFactor 2 -ArrowsToType 'arrow' -ArrowsMiddleEnabled $false -ArrowsMiddleScaleFactor 1 -ArrowsMiddleType 'bar' -ArrowsFromEnabled $true -ArrowsFromScaleFactor 2 -ArrowsFromType 'circle' -ArrowStrikethrough $false -Chosen $true -Color 'blue' -ColorHighlight 'yellow' -ColorHover 'green' -ColorInherit 'from' -ColorOpacity 0.8 -Dashes $false -Length '100px' -FontColor 'black' -FontSize 12 -FontName 'Arial' -FontBackground 'white' -FontStrokeWidth 1 -FontStrokeColor 'gray' -FontAlign 'center' -FontMulti 'true' -FontVAdjust 0 -WidthConstraint 150

Description ----------- Creates a new set of diagram edge options with specific configurations.

Parameters

-ArrowsFromEnabled Nullable`1 optionalposition: 6
Specifies whether arrows pointing from the edge are enabled.
-ArrowsFromScaleFactor Nullable`1 optionalposition: 7
Specifies the scale factor for arrows pointing from the edge.
-ArrowsFromType String optionalposition: 8
Specifies the type of arrows pointing from the edge. Valid values are 'arrow', 'bar', 'circle'.
Possible values: arrow, bar, circle
-ArrowsMiddleEnabled Nullable`1 optionalposition: 3
Specifies whether arrows in the middle of the edge are enabled.
-ArrowsMiddleScaleFactor Nullable`1 optionalposition: 4
Specifies the scale factor for arrows in the middle of the edge.
-ArrowsMiddleType String optionalposition: 5
Specifies the type of arrows in the middle of the edge. Valid values are 'arrow', 'bar', 'circle'.
Possible values: arrow, bar, circle
-ArrowsToEnabled Nullable`1 optionalposition: 0
Specifies whether arrows pointing to the edge are enabled.
-ArrowsToScaleFactor Nullable`1 optionalposition: 1
Specifies the scale factor for arrows pointing to the edge.
-ArrowsToType String optionalposition: 2
Specifies the type of arrows pointing to the edge. Valid values are 'arrow', 'bar', 'circle'.
Possible values: arrow, bar, circle
-ArrowStrikethrough Nullable`1 optionalposition: 9
Specifies whether the arrow should have a strikethrough effect.
-Chosen Nullable`1 optionalposition: 10
Specifies whether the edge is chosen.
-Color String optionalposition: 11
Specifies the color of the edge.
-ColorHighlight String optionalposition: 12
Specifies the color of the edge when highlighted.
-ColorHover String optionalposition: 13
Specifies the color of the edge when hovered over.
-ColorInherit String optionalposition: 14
Specifies how the color of the edge should inherit. Valid values are 'true', 'false', 'from', 'to', 'both'.
Possible values: true, false, from, to, both
-ColorOpacity Nullable`1 optionalposition: 15
Specifies the opacity of the color of the edge. Range between 0 and 1.
-Dashes Nullable`1 optionalposition: 16
Specifies whether the edge should be dashed.
-FontAlign String optionalposition: 24
Specifies the alignment of the font. Valid values are 'center', 'left'.
Possible values: center, left
-FontBackground String optionalposition: 21
Specifies the background color of the font on the edge.
-FontColor String optionalposition: 18
Specifies the color of the font on the edge.
-FontMulti String optionalposition: 25
Specifies whether the font supports multiline. Valid values are 'false', 'true', 'markdown', 'html'.
Possible values: false, true, markdown, html
-FontName String optionalposition: 20
Specifies the font name for the edge.
-FontSize Nullable`1 optionalposition: 19
Specifies the font size in pixels.
-FontStrokeColor String optionalposition: 23
Specifies the stroke color of the font on the edge.
-FontStrokeWidth Nullable`1 optionalposition: 22
Specifies the stroke width of the font in pixels.
-FontVAdjust Nullable`1 optionalposition: 26
Specifies the vertical adjustment of the font.
-Length String optionalposition: 17
Specifies the length of the edge.
-WidthConstraint Nullable`1 optionalposition: 27
Specifies the width constraint of the edge.

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.