Command
New-DiagramOptionsNodes
Creates a custom object representing options for diagram nodes.
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 <String>]
[-Size <Nullable`1>]
[-WidthConstraintMaximum <Nullable`1>]
[-WidthConstraintMinimum <Nullable`1>]
[<CommonParameters>]#Parameter set:
ShapeDescription
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.Parameters
- -BorderWidth Nullable<T>
- Specifies the width of the border around the node.
- -BorderWidthSelected Nullable<T>
- 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<T>
- 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<T>
- Indicates whether the node's X position is fixed.
- -FixedY Nullable<T>
- 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<T>
- Specifies the font size of the node text in pixels.
- -FontStrokeColor String
- Specifies the stroke color of the node's font.
- -FontStrokeWidth Nullable<T>
- Specifies the stroke width of the node's font.
- -FontVAdjust Nullable<T>
- Specifies the vertical adjustment of the node's text.
- -HeightConstraintMinimum Nullable<T>
- 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<T>
- Specifies the margin around the node on all sides.
- -MarginBottom Nullable<T>
- Specifies the bottom margin around the node.
- -MarginLeft Nullable<T>
- Specifies the left margin around the node.
- -MarginRight Nullable<T>
- Specifies the right margin around the node.
- -MarginTop Nullable<T>
- 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<T>
- Specifies the size of the node.
- -WidthConstraintMaximum Nullable<T>
- Specifies the maximum width constraint for the node.
- -WidthConstraintMinimum Nullable<T>
- Specifies the minimum width constraint for the node.
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.