< Back

New-TextBlock

Sat Jan 11, 2020 2:46 pm

NAME New-TextBlock



SYNOPSIS

This function generates a block of text with options for indentation and newlines.





SYNTAX

New-TextBlock [-content] <ScriptBlock> [-indentationAmount <Int32>] [-appendNewLines <Int32>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-content <ScriptBlock>

The script block which generates the content of the text block.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-indentationAmount <Int32>

The number of spaces to add to the lines of the text block as indentation.



Required? false

Position? named

Default value 4

Accept pipeline input? false

Accept wildcard characters? false



-appendNewLines <Int32>

The number of newline characters to add to the end of the text block when it is returned.



Required? false

Position? named

Default value 0

Accept pipeline input? false

Accept 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).



INPUTS



OUTPUTS

System.String







RELATED LINKS