# New-DiagramOptionsLinks

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

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 new set of options for diagram edges in a diagram.

## Syntax

```
New-DiagramOptionsLinks
[[-ArrowsFromEnabled] <Nullable`1>]
[[-ArrowsFromScaleFactor] <Nullable`1>]
[[-ArrowsFromType] <arrow|bar|circle>]
[[-ArrowsMiddleEnabled] <Nullable`1>]
[[-ArrowsMiddleScaleFactor] <Nullable`1>]
[[-ArrowsMiddleType] <arrow|bar|circle>]
[[-ArrowsToEnabled] <Nullable`1>]
[[-ArrowsToScaleFactor] <Nullable`1>]
[[-ArrowsToType] <arrow|bar|circle>]
[[-ArrowStrikethrough] <Nullable`1>]
[[-Chosen] <Nullable`1>]
[[-Color] <String>]
[[-ColorHighlight] <String>]
[[-ColorHover] <String>]
[[-ColorInherit] <true|false|from|to|both>]
[[-ColorOpacity] <Nullable`1>]
[[-Dashes] <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>]
[[-Length] <String>]
[[-WidthConstraint] <Nullable`1>]
[<CommonParameters>]
```

[#](#member-2681d0733cc2aab0262837e2)

Parameter set: `All Parameter Sets`

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

### Example 1

```powershell
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<T> optionalposition: 6**

Specifies whether arrows pointing from the edge are enabled.

**-ArrowsFromScaleFactor Nullable<T> 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<T> optionalposition: 3**

Specifies whether arrows in the middle of the edge are enabled.

**-ArrowsMiddleScaleFactor Nullable<T> 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<T> optionalposition: 0**

Specifies whether arrows pointing to the edge are enabled.

**-ArrowsToScaleFactor Nullable<T> 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<T> optionalposition: 9**

Specifies whether the arrow should have a strikethrough effect.

**-Chosen Nullable<T> 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<T> optionalposition: 15**

Specifies the opacity of the color of the edge. Range between 0 and 1.

**-Dashes Nullable<T> 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<T> optionalposition: 19**

Specifies the font size in pixels.

**-FontStrokeColor String optionalposition: 23**

Specifies the stroke color of the font on the edge.

**-FontStrokeWidth Nullable<T> optionalposition: 22**

Specifies the stroke width of the font in pixels.

**-FontVAdjust Nullable<T> optionalposition: 26**

Specifies the vertical adjustment of the font.

**-Length String optionalposition: 17**

Specifies the length of the edge.

**-WidthConstraint Nullable<T> 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:20E751A4A7E9233DBF01DDE4B5084A6A6E9BDCFEA62EFFB99555B20FCB0F76D0 -->
