ConsoleSnapshot Class

Represents a snapshot of the console state including redirection status, encoding, buffer size, and colors.

public sealed class ConsoleSnapshot

Constructors

NameDescription
ConsoleSnapshot()

ConsoleSnapshot()

ConsoleSnapshot.cs
public ConsoleSnapshot()

No documentation is available.

Properties

NameDescription
BackgroundColor
BufferHeight
BufferWidth
ForegroundColor
InputEncoding
IsErrorRedirected
IsInputRedirected
IsOutputRedirected
LargestWindowHeight
LargestWindowWidth
OutEncoding
Title
WindowHeight
WindowLeft
WindowTop
WindowWidth

BackgroundColor

ConsoleSnapshot.cs
public ConsoleColor? BackgroundColor { get; }

Property value

ConsoleColor?

No documentation is available.

BufferHeight

ConsoleSnapshot.cs
public int BufferHeight { get; }

Property value

int

No documentation is available.

public int BufferWidth { get; }

Property value

int

No documentation is available.

ForegroundColor

ConsoleSnapshot.cs
public ConsoleColor? ForegroundColor { get; }

Property value

ConsoleColor?

No documentation is available.

InputEncoding

ConsoleSnapshot.cs
public EncodingSnapshot? InputEncoding { get; }

Property value

EncodingSnapshot?

No documentation is available.

IsErrorRedirected

ConsoleSnapshot.cs
public bool IsErrorRedirected { get; }

Property value

bool

No documentation is available.

IsInputRedirected

ConsoleSnapshot.cs
public bool IsInputRedirected { get; }

Property value

bool

No documentation is available.

IsOutputRedirected

ConsoleSnapshot.cs
public bool IsOutputRedirected { get; }

Property value

bool

No documentation is available.

LargestWindowHeight

ConsoleSnapshot.cs
public int LargestWindowHeight { get; }

Property value

int

No documentation is available.

LargestWindowWidth

ConsoleSnapshot.cs
public int LargestWindowWidth { get; }

Property value

int

No documentation is available.

public EncodingSnapshot? OutEncoding { get; }

Property value

EncodingSnapshot?

No documentation is available.

public string? Title { get; }

Property value

string?

No documentation is available.

WindowHeight

ConsoleSnapshot.cs
public int WindowHeight { get; }

Property value

int

No documentation is available.

public int WindowLeft { get; }

Property value

int

No documentation is available.

public int WindowTop { get; }

Property value

int

No documentation is available.

public int WindowWidth { get; }

Property value

int

No documentation is available.