Delen via


PSStyle Class

Definition

Contains configuration for how PowerShell renders text.

public sealed class PSStyle
type PSStyle = class
Public NotInheritable Class PSStyle
Inheritance
PSStyle

Properties

Background

Gets background colors.

Blink

Gets value to turn on blink.

BlinkOff

Gets value to turn off blink.

Bold

Gets value to turn on blink.

BoldOff

Gets value to turn off bold.

Dim

Gets value to turn on dim.

DimOff

Gets value to turn off dim.

FileInfo

Gets FileInfo colors.

Foreground

Gets foreground colors.

Formatting

Gets the formatting rendering settings.

Hidden

Gets value to turn on hidden.

HiddenOff

Gets value to turn off hidden.

Instance

Gets singleton instance.

Italic

Gets value to turn on standout.

ItalicOff

Gets value to turn off standout.

OutputRendering

Gets or sets the rendering mode for output.

Progress

Gets the configuration for progress rendering.

Reset

Gets value to turn off all attributes.

Reverse

Gets value to turn on reverse.

ReverseOff

Gets value to turn off reverse.

Strikethrough

Gets value to turn on strikethrough.

StrikethroughOff

Gets value to turn off strikethrough.

Underline

Gets value to turn on underlined.

UnderlineOff

Gets value to turn off underlined.

Methods

FormatHyperlink(String, Uri)

Gets ANSI representation of a hyperlink.

MapBackgroundColorToEscapeSequence(ConsoleColor)

Return the VT escape sequence for a background color.

MapColorPairToEscapeSequence(ConsoleColor, ConsoleColor)

Return the VT escape sequence for a pair of foreground and background colors.

MapForegroundColorToEscapeSequence(ConsoleColor)

Return the VT escape sequence for a foreground color.

Applies to