Out-StringNoWrap

Returns string that you specify.

Syntax

Out-StringNoWrap
   [[-indent] <Int32>]
   [[-string] <String>]
   [<CommonParameters>]

Description

The Out-StringNoWrap cmdlet returns a string that you specify with a specified indent.

Examples

Example 1: Return an indented string

PS C:\>Out-StringNoWrap -indent 20 -string "Hello, world"
                    Hello, world

This command returns a string with twenty spaces preceding it.

Optional Parameters

-indent

Specifies the number of spaces to indent the string.

Type:Int32
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-string

Specifies the string to return.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False