Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BufferCell Constructor (Char, ConsoleColor, ConsoleColor, BufferCellType)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new BufferCell object that contains the character, foreground color, background color, and cell type.

Namespace:   System.Management.Automation.Host
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public BufferCell(
	char character,
	ConsoleColor foreground,
	ConsoleColor background,
	BufferCellType bufferCellType
)

Parameters

character
Type: System.Char

The character displayed in the cell.

foreground
Type: System.ConsoleColor

A ConsoleColor constant that specifies the foreground color of the cell.

background
Type: System.ConsoleColor

A ConsoleColor constant that specifies the background color of the cell.

bufferCellType
Type: System.Management.Automation.Host.BufferCellType

A BufferCellType constant that specifies the type of the buffer cell. For more information, see Remarks.

A cell of type Trailing must always be preceded by a cell of type Leading.

Return to top

Community Additions

Show: