ConsoleRectangle Structure

Stores a set of four integers that represent the location and size of a (printable) rectangle on a console output buffer.

Definition

Namespace: DevCase.Core.Application.Console
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[SerializableAttribute]
[ComVisibleAttribute(true)]
public struct ConsoleRectangle
Inheritance
Object    ValueType    ConsoleRectangle

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

ConsoleRectangle(Rectangle) Initializes a new instance of the ConsoleRectangle structure.
ConsoleRectangle(Point, Size) Initializes a new instance of the ConsoleRectangle structure.
ConsoleRectangle(Rectangle, Char, Char, Char, Char) Initializes a new instance of the ConsoleRectangle structure.
ConsoleRectangle(Point, Size, Char, Char, Char, Char) Initializes a new instance of the ConsoleRectangle structure.

Properties

Bottom Gets the y-coordinate that is the sum of the Y and Height property values of this ConsoleRectangle.
CharBottom Gets or sets the character to print the bottom border of this ConsoleRectangle on a console output buffer.
CharLeft Gets or sets the character to print the left border of this ConsoleRectangle on a console output buffer.
CharRight Gets or sets the character to print the right border of this ConsoleRectangle on a console output buffer.
CharTop Gets or sets the character to print the top border of this ConsoleRectangle on a console output buffer.
Height Gets the height of this ConsoleRectangle.
IsEmpty Tests whether all numeric properties of this System.Drawing.Rectangle have values of zero.
Left Gets the x-coordinate of the left edge of this ConsoleRectangle.
Location Gets or sets the location of this ConsoleRectangle on a console output buffer.
Right Gets the x-coordinate that is the sum of X and Width property values of this ConsoleRectangle.
Size Gets or sets the size of this ConsoleRectangle.
Top Gets the y-coordinate of the top edge of this ConsoleRectangle.
Width Gets the width of this ConsoleRectangle.
X Gets the x-coordinate of the upper-left corner of this ConsoleRectangle.
Y Gets the y-coordinate of the upper-left corner of this ConsoleRectangle.

Methods

Equals
(Overrides ValueTypeEquals(Object))
GetHashCode
(Overrides ValueTypeGetHashCode)
GetType Gets the Type of the current instance.
(Inherited from Object)
Inflate(Size) Enlarges this ConsoleRectangle by the specified amount.
Inflate(Int32, Int32) Enlarges this ConsoleRectangle by the specified amount.
Offset(Point) Adjusts the location of this ConsoleRectangle by the specified amount.
Offset(Int32, Int32) Adjusts the location of this ConsoleRectangle by the specified amount.
ToString Returns a String that represents this ConsoleRectangle.
(Overrides ValueTypeToString)
Write Writes the bounds of this ConsoleRectangle on the current console output buffer.

Operators

Equality(ConsoleRectangle, ConsoleRectangle) Tests whether two ConsoleRectangle structures have equal location, size and characters.
Equality(Rectangle, ConsoleRectangle) Tests whether two Rectangle and ConsoleRectangle structures have equal location and size.
(ConsoleRectangle to Rectangle) Performs an implicit conversion from ConsoleRectangle to Rectangle.
(Rectangle to ConsoleRectangle) Performs an implicit conversion from Rectangle to ConsoleRectangle.
Inequality(ConsoleRectangle, ConsoleRectangle) Tests whether two ConsoleRectangle structures differ in location, size or characters.
Inequality(Rectangle, ConsoleRectangle) Determine whether two Rectangle and ConsoleRectangle structures differ in location or size.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also