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