Command
New-OrgChartNode
Creates a new organizational chart node.
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 SetsDescription
This function creates a new node for an organizational chart. It allows defining children nodes by specifying nested nodes for self-nesting.
Examples
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 -OnlineParameters
- -Children ScriptBlock
- Specifies the children of the node by defining nested nodes for self-nesting.
- -ContentBackgroundColor String
- -ContentBorderColor String
- -ContentColor String
- -Name String
- Specifies the name of the node.
- -Title String
- Specifies the title of the node.
- -TitleBackgroundColor String
- [string] $ClassName,
- -TitleBorderColor String
- -TitleColor String
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.