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-HTMLTreeChildCounter

Namespace PSWriteHTML

Creates a new HTML tree child counter object with specified options.

Remarks

This function creates a new HTML tree child counter object with the ability to customize its behavior using the provided parameters.

Examples

Authored help example

EXAMPLE 1


New-HTMLTreeChildCounter -Deep
Creates a new HTML tree child counter object that counts child elements recursively.
        

EXAMPLE 2


New-HTMLTreeChildCounter -HideZero -HideExpanded
Creates a new HTML tree child counter object that hides counters for child elements with a count of zero and expanded child elements.
        

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-HTMLTreeChildCounter [-Deep] [-HideExpanded] [-HideZero] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Deep SwitchParameter optionalposition: namedpipeline: False
Indicates whether to count child elements recursively.
HideExpanded SwitchParameter optionalposition: namedpipeline: False
Indicates whether to hide counters for expanded child elements.
HideZero SwitchParameter optionalposition: namedpipeline: False
Indicates whether to hide counters for child elements with a count of zero.