Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-OrgChartNode

Namespace PSWriteHTML

Creates a new organizational chart node.

Remarks

This function creates a new node for an organizational chart. It allows defining children nodes by specifying nested nodes for self-nesting.

Examples

Authored help example

EXAMPLE 1


New-HTML {
    New-HTMLOrgChart {
        New-OrgChartNode -Name 'Test' -Title 'Test2' {
            New-OrgChartNode -Name 'Test' -Title 'Test2'
            New-OrgChartNode -Name 'Test' -Title 'Test2'
            New-OrgChartNode -Name 'Test' -Title 'Test2' {
                New-OrgChartNode -Name 'Test' -Title 'Test2'
            }
        }
    } -AllowExport -ExportExtension pdf -Draggable
} -FilePath $PSScriptRoot\Example-OrgChart01.html -ShowHTML -Online
        

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-OrgChartNode [-Children <ScriptBlock>] [-ContentBackgroundColor <String>] [-ContentBorderColor <String>] [-ContentColor <String>] [-Name <String>] [-Title <String>] [-TitleBackgroundColor <String>] [-TitleBorderColor <String>] [-TitleColor <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Children ScriptBlock optionalposition: 0pipeline: False
Specifies the children of the node by defining nested nodes for self-nesting.
ContentBackgroundColor String optionalposition: 6pipeline: False
ContentBorderColor String optionalposition: 7pipeline: False
ContentColor String optionalposition: 8pipeline: False
Name String optionalposition: 1pipeline: False
Specifies the name of the node.
Title String optionalposition: 2pipeline: False
Specifies the title of the node.
TitleBackgroundColor String optionalposition: 3pipeline: False
[string] $ClassName,
TitleBorderColor String optionalposition: 4pipeline: False
TitleColor String optionalposition: 5pipeline: False