API Reference
Function
New-DiagramNode
Creates nodes on a diagram
Remarks
Creates nodes on a diagram
Examples
EXAMPLE 1
An example
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-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 <circle>] [-Size <Nullable`1>] [-Title <String>] [-To <String[]>] [-WidthConstraintMaximum <Nullable`1>] [-WidthConstraintMinimum <Nullable`1>] [-X <Nullable`1>] [-Y <Nullable`1>] [<CommonParameters>]
#
Parameter set:
ShapeParameters
- ArrowsFromEnabled SwitchParameter
- Parameter description
- ArrowsMiddleEnabled SwitchParameter
- Parameter description
- ArrowsToEnabled SwitchParameter
- Parameter description
- BorderWidth Nullable`1
- Parameter description
- BorderWidthSelected Nullable`1
- Parameter description
- Chosen Nullable`1
- Parameter description
- ColorBackground String
- Parameter description
- ColorBorder String
- Parameter description
- ColorHighlightBackground String
- Parameter description
- ColorHighlightBorder String
- Parameter description
- ColorHoverBackground String
- Parameter description
- ColorHoverBorder String
- Parameter description
- FixedX Nullable`1
- Parameter description
- FixedY Nullable`1
- Parameter description
- FontAlign String
- This can be set to 'left' to make the label left-aligned. Otherwise, defaults to 'center'.
- Possible values:
center,left - FontBackground String
- When not undefined but a color string, a background rectangle will be drawn behind the label in the supplied color.
- FontColor String
- Color of the label text.
- FontMulti String
- 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
- Font face (or font family) of the label text.
- FontSize Nullable`1
- Size of the label text.
- FontStrokeColor String
- This is the color of the stroke assuming the value for stroke is higher than 0.
- FontStrokeWidth Nullable`1
- 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`1
- Parameter description
- HeightConstraintMinimum Nullable`1
- Parameter description
- HeightConstraintVAlign String
- Parameter description
- Possible values:
top,middle,bottom - HtmlTextBox ScriptBlock
- Experimental TextBox to put HTML instead of Image using SVG
- Id String
- Id of a node. If not set, label will be used as Id.
- Label String
- Label for a diagram
- Level Nullable`1
- Parameter description
- LinkColor String
- Parameter description
- Shape String
- Parameter description
- Possible values:
circle,dot,diamond,ellipse,database,box,square,triangle,triangleDown,text,star,hexagon - Size Nullable`1
- 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
- Label that shows up when hovering over node
- To String[]
- Parameter description
- WidthConstraintMaximum Nullable`1
- Parameter description
- WidthConstraintMinimum Nullable`1
- Parameter description
- X Nullable`1
- Parameter description
- Y Nullable`1
- Parameter description
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>]
#
Parameter set:
ImageParameters
- ArrowsFromEnabled SwitchParameter
- Parameter description
- ArrowsMiddleEnabled SwitchParameter
- Parameter description
- ArrowsToEnabled SwitchParameter
- Parameter description
- BorderWidth Nullable`1
- Parameter description
- BorderWidthSelected Nullable`1
- Parameter description
- BrokenImages String
- Parameter description
- Chosen Nullable`1
- Parameter description
- ColorBackground String
- Parameter description
- ColorBorder String
- Parameter description
- ColorHighlightBackground String
- Parameter description
- ColorHighlightBorder String
- Parameter description
- ColorHoverBackground String
- Parameter description
- ColorHoverBorder String
- Parameter description
- FixedX Nullable`1
- Parameter description
- FixedY Nullable`1
- Parameter description
- FontAlign String
- This can be set to 'left' to make the label left-aligned. Otherwise, defaults to 'center'.
- Possible values:
center,left - FontBackground String
- When not undefined but a color string, a background rectangle will be drawn behind the label in the supplied color.
- FontColor String
- Color of the label text.
- FontMulti String
- 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
- Font face (or font family) of the label text.
- FontSize Nullable`1
- Size of the label text.
- FontStrokeColor String
- This is the color of the stroke assuming the value for stroke is higher than 0.
- FontStrokeWidth Nullable`1
- 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`1
- Parameter description
- HeightConstraintMinimum Nullable`1
- Parameter description
- HeightConstraintVAlign String
- Parameter description
- Possible values:
top,middle,bottom - HtmlTextBox ScriptBlock
- Experimental TextBox to put HTML instead of Image using SVG
- Id String
- Id of a node. If not set, label will be used as Id.
- Image Uri
- Parameter description
- ImageType String
- Parameter description
- Possible values:
squareImage,circularImage - Label String
- Label for a diagram
- Level Nullable`1
- Parameter description
- LinkColor String
- Parameter description
- Size Nullable`1
- 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
- Label that shows up when hovering over node
- To String[]
- Parameter description
- WidthConstraintMaximum Nullable`1
- Parameter description
- WidthConstraintMinimum Nullable`1
- Parameter description
- X Nullable`1
- Parameter description
- Y Nullable`1
- Parameter description
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>]
#
Parameter set:
FontAwesomeSolidParameters
- ArrowsFromEnabled SwitchParameter
- Parameter description
- ArrowsMiddleEnabled SwitchParameter
- Parameter description
- ArrowsToEnabled SwitchParameter
- Parameter description
- BorderWidth Nullable`1
- Parameter description
- BorderWidthSelected Nullable`1
- Parameter description
- Chosen Nullable`1
- Parameter description
- FixedX Nullable`1
- Parameter description
- FixedY Nullable`1
- Parameter description
- FontAlign String
- This can be set to 'left' to make the label left-aligned. Otherwise, defaults to 'center'.
- Possible values:
center,left - FontBackground String
- When not undefined but a color string, a background rectangle will be drawn behind the label in the supplied color.
- FontColor String
- Color of the label text.
- FontMulti String
- 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
- Font face (or font family) of the label text.
- FontSize Nullable`1
- Size of the label text.
- FontStrokeColor String
- This is the color of the stroke assuming the value for stroke is higher than 0.
- FontStrokeWidth Nullable`1
- 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`1
- Parameter description
- HeightConstraintMinimum Nullable`1
- Parameter description
- HeightConstraintVAlign String
- Parameter description
- Possible values:
top,middle,bottom - HtmlTextBox ScriptBlock
- Experimental TextBox to put HTML instead of Image using SVG
- IconAsImage SwitchParameter
- Parameter description
- IconColor String
- Parameter description
- IconSolid String
- Parameter description
- Id String
- Id of a node. If not set, label will be used as Id.
- Label String
- Label for a diagram
- Level Nullable`1
- Parameter description
- LinkColor String
- Parameter description
- Size Nullable`1
- 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
- Label that shows up when hovering over node
- To String[]
- Parameter description
- WidthConstraintMaximum Nullable`1
- Parameter description
- WidthConstraintMinimum Nullable`1
- Parameter description
- X Nullable`1
- Parameter description
- Y Nullable`1
- Parameter description
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>]
#
Parameter set:
FontAwesomeRegularParameters
- ArrowsFromEnabled SwitchParameter
- Parameter description
- ArrowsMiddleEnabled SwitchParameter
- Parameter description
- ArrowsToEnabled SwitchParameter
- Parameter description
- BorderWidth Nullable`1
- Parameter description
- BorderWidthSelected Nullable`1
- Parameter description
- Chosen Nullable`1
- Parameter description
- FixedX Nullable`1
- Parameter description
- FixedY Nullable`1
- Parameter description
- FontAlign String
- This can be set to 'left' to make the label left-aligned. Otherwise, defaults to 'center'.
- Possible values:
center,left - FontBackground String
- When not undefined but a color string, a background rectangle will be drawn behind the label in the supplied color.
- FontColor String
- Color of the label text.
- FontMulti String
- 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
- Font face (or font family) of the label text.
- FontSize Nullable`1
- Size of the label text.
- FontStrokeColor String
- This is the color of the stroke assuming the value for stroke is higher than 0.
- FontStrokeWidth Nullable`1
- 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`1
- Parameter description
- HeightConstraintMinimum Nullable`1
- Parameter description
- HeightConstraintVAlign String
- Parameter description
- Possible values:
top,middle,bottom - HtmlTextBox ScriptBlock
- Experimental TextBox to put HTML instead of Image using SVG
- IconAsImage SwitchParameter
- Parameter description
- IconColor String
- Parameter description
- IconRegular String
- Parameter description
- Id String
- Id of a node. If not set, label will be used as Id.
- Label String
- Label for a diagram
- Level Nullable`1
- Parameter description
- LinkColor String
- Parameter description
- Size Nullable`1
- 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
- Label that shows up when hovering over node
- To String[]
- Parameter description
- WidthConstraintMaximum Nullable`1
- Parameter description
- WidthConstraintMinimum Nullable`1
- Parameter description
- X Nullable`1
- Parameter description
- Y Nullable`1
- Parameter description
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>]
#
Parameter set:
FontAwesomeBrandsParameters
- ArrowsFromEnabled SwitchParameter
- Parameter description
- ArrowsMiddleEnabled SwitchParameter
- Parameter description
- ArrowsToEnabled SwitchParameter
- Parameter description
- BorderWidth Nullable`1
- Parameter description
- BorderWidthSelected Nullable`1
- Parameter description
- Chosen Nullable`1
- Parameter description
- FixedX Nullable`1
- Parameter description
- FixedY Nullable`1
- Parameter description
- FontAlign String
- This can be set to 'left' to make the label left-aligned. Otherwise, defaults to 'center'.
- Possible values:
center,left - FontBackground String
- When not undefined but a color string, a background rectangle will be drawn behind the label in the supplied color.
- FontColor String
- Color of the label text.
- FontMulti String
- 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
- Font face (or font family) of the label text.
- FontSize Nullable`1
- Size of the label text.
- FontStrokeColor String
- This is the color of the stroke assuming the value for stroke is higher than 0.
- FontStrokeWidth Nullable`1
- 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`1
- Parameter description
- HeightConstraintMinimum Nullable`1
- Parameter description
- HeightConstraintVAlign String
- Parameter description
- Possible values:
top,middle,bottom - HtmlTextBox ScriptBlock
- Experimental TextBox to put HTML instead of Image using SVG
- IconAsImage SwitchParameter
- Parameter description
- IconBrands String
- Parameter description
- IconColor String
- Parameter description
- Id String
- Id of a node. If not set, label will be used as Id.
- Label String
- Label for a diagram
- Level Nullable`1
- Parameter description
- LinkColor String
- Parameter description
- Size Nullable`1
- 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
- Label that shows up when hovering over node
- To String[]
- Parameter description
- WidthConstraintMaximum Nullable`1
- Parameter description
- WidthConstraintMinimum Nullable`1
- Parameter description
- X Nullable`1
- Parameter description
- Y Nullable`1
- Parameter description