C# Class PsTest.PowerShellIseColorFormatter

Represents a color formatter which formats colors for a PowerShell ISE host.
Inheritance: IColorFormatter
Mostrar archivo Open project: knutkj/pstest Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetBackgroundColor ( ) : string

Get the current background color.

PowerShellIseColorFormatter ( IRunspace runspace ) : System

Initializes a new instance of the PowerShell ISE color formatter with the specified runtime.

SetBackgroundColor ( string color ) : void

Sets the background color to the specified color.

Method Details

GetBackgroundColor() public method

Get the current background color.
public GetBackgroundColor ( ) : string
return string

PowerShellIseColorFormatter() public method

Initializes a new instance of the PowerShell ISE color formatter with the specified runtime.
public PowerShellIseColorFormatter ( IRunspace runspace ) : System
runspace IRunspace /// The runtime to use for formatting instructions. ///
return System

SetBackgroundColor() public method

Sets the background color to the specified color.
public SetBackgroundColor ( string color ) : void
color string /// The color. ///
return void