Skip to content

Latest commit

 

History

History
289 lines (154 loc) · 5.41 KB

reference.md

File metadata and controls

289 lines (154 loc) · 5.41 KB

DNX.Helpers.Console

ColorType

F:DNX.Helpers.Console.Background

Refers to background colour

F:DNX.Helpers.Console.Foreground

Refers to foreground colour

ConsoleColourChanger

Class ConsoleColourChanger.

M:DNX.Helpers.Console.#ctor(newColour)

Initializes a new instance of the class.

Name Description
newColour System.ConsoleColor
The new colour.

M:DNX.Helpers.Console.#ctor(newColour, type)

Initializes a new instance of the class.

Name Description
newColour System.ConsoleColor
The new colour.
type DNX.Helpers.Console.ColorType
The type.

M:DNX.Helpers.Console.Dispose

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

M:DNX.Helpers.Console.GetColour

Gets the colour.

Returns

ConsoleColor.

M:DNX.Helpers.Console.GetColour(type)

Gets the colour.

Name Description
type DNX.Helpers.Console.ColorType
The type.

Returns

ConsoleColor.

M:DNX.Helpers.Console.SetColour(colour)

Sets the colour.

Name Description
colour System.ConsoleColor
The colour.

M:DNX.Helpers.Console.SetColour(colour, type)

Sets the colour.

Name Description
colour System.ConsoleColor
The colour.
type DNX.Helpers.Console.ColorType
The type.

ConsoleHelper

M:DNX.Helpers.Console.Display

M:DNX.Helpers.Console.Display(s)

Name Description
s System.String

M:DNX.Helpers.Console.Display(s, newline)

Name Description
s System.String
newline System.Boolean

M:DNX.Helpers.Console.Display(s, wtr)

Name Description
s System.String
wtr System.IO.TextWriter

M:DNX.Helpers.Console.Display(s, wtr, newline)

Displays the specified s.

Name Description
s System.String
The s.
wtr System.IO.TextWriter
The WTR.
newline System.Boolean
The newline.

M:DNX.Helpers.Console.DisplayAt(y, x, text)

Displays at.

Name Description
y System.Int32
The y.
x System.Int32
The x.
text System.String
The text.

M:DNX.Helpers.Console.DisplayAt(y, x, text, alignment)

Displays at.

Name Description
y System.Int32
The y.
x System.Int32
The x.
text System.String
The text.
alignment DNX.Helpers.Console.DisplayAtAlignment
The alignment.

M:DNX.Helpers.Console.DisplayError(s)

Name Description
s System.String

M:DNX.Helpers.Console.DisplayError(s, changeColour)

Displays the error.

Name Description
s System.String
The s.
changeColour System.Boolean
if set to true [change colour].

M:DNX.Helpers.Console.DisplayHeader(DNX.Helpers.Assemblies.AssemblyDetails)

M:DNX.Helpers.Console.DisplayHeader(assemblyDetails, headers)

Displays the header.

Name Description
assemblyDetails DNX.Helpers.Assemblies.AssemblyDetails
The assembly details.
headers System.Collections.Generic.IList{System.String}
The headers.

M:DNX.Helpers.Console.DisplayHeader(assemblyDetails, headers, writer)

Displays the header.

Name Description
assemblyDetails DNX.Helpers.Assemblies.AssemblyDetails
The assembly details.
headers System.Collections.Generic.IList{System.String}
The headers.
writer System.IO.TextWriter
The writer.

M:DNX.Helpers.Console.DisplayHeader(assemblyDetails, writer)

Name Description
assemblyDetails DNX.Helpers.Assemblies.AssemblyDetails
writer System.IO.TextWriter

M:DNX.Helpers.Console.GetConsoleWidth(defaultWidth)

Get the current console output window width

Name Description
defaultWidth System.Int32

Returns

M:DNX.Helpers.Console.MoveTo(y, x)

Moves to.

Name Description
y System.Int32
The y.
x System.Int32
The x.

DisplayAtAlignment

Enum DisplayAtAlignment

F:DNX.Helpers.Console.Centre

The centre

F:DNX.Helpers.Console.Left

The left

F:DNX.Helpers.Console.Right

The right

Exceptions.ReturnCodeException

Class ReturnCodeException.

M:DNX.Helpers.Console.#ctor(returnCode)

Initializes a new instance of the class.

Name Description
returnCode System.Int32
The return code.

M:DNX.Helpers.Console.#ctor(returnCode, message)

Initializes a new instance of the class.

Name Description
returnCode System.Int32
The return code.
message System.String
The message.

M:DNX.Helpers.Console.#ctor(returnCode, message, innerException)

Initializes a new instance of the class.

Name Description
returnCode System.Int32
The return code.
message System.String
The message.
innerException System.Exception
The inner exception.

F:DNX.Helpers.Console.MaximumReturnCode

The maximum return code

.ReturnCode

Gets the return code.