For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDTreeNode

Creates a tree node.

Synopsis

Creates a tree node.

Syntax

New-UDTreeNode [-Name] <String> [-Id <String>] [-Children <ScriptBlock>] [-Leaf] [-Icon <Object>] [-ExpandedIcon <Object>] [-Expanded] [<CommonParameters>]

Description

Creates a tree node. This cmdlet should be used with New-UDTreeView.

Parameters

-Name

The name of the node. This is displayed within the UI.

Required?                    true
Position?                    2
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Id

The ID of the node. This is passed to the $EventData property when the OnNodeClicked script block is set.

-Children

The children of this node. This should be a collection of New-UDTreeNodes.

-Icon The icon to display for this node. Use New-UDIcon to create this icon. Added in PSU 2.6.Required? falsePosition? namedDefault valueAccept pipeline input? falseAliasesAccept wildcard characters? false-ExpandedIcon The icon to display for this node when it is expanded. Use New-UDIcon to create this icon. Added in PSU 2.6.Required? falsePosition? namedDefault valueAccept pipeline input? falseAliasesAccept wildcard characters? false -Expanded [<SwitchParameter>]Required? falsePosition? namedDefault value FalseAccept pipeline input? falseAliasesAccept wildcard characters? false <CommonParameters> This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).Outputs-------------------------- EXAMPLE 1 --------------------------PS > See New-UDTreeView for examples.

Last updated

Was this helpful?