Skip to content
ConsoleMonster
Cmdlet

New-ConsoleRule

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.Rule

Creates a horizontal rule, optionally with a title.

Syntax

New-ConsoleRule [-Alignment <Left|Center|Right>] [[-Title] <Object>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Creates a horizontal rule, optionally with a title.

The line uses the border colour and the glyph tier's line character.

Examples

Authored help example

EXAMPLE 1

New-ConsoleRule -Alignment 'Value'

Parameters

-Alignment HorizontalAlignment optional
Title alignment: Left, Center or Right.
Possible values: Left, Center, Right
-Title Object optionalposition: 0
The title (markup allowed).

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.