[SerializableAttribute]
[ComVisibleAttribute(true)]
public struct ConsoleRectangle
<SerializableAttribute>
<ComVisibleAttribute(true)>
Public Structure ConsoleRectangle
Dim instance As ConsoleRectangle
[SerializableAttribute]
[ComVisibleAttribute(true)]
public value class ConsoleRectangle
[<SealedAttribute>]
[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
type ConsoleRectangle =
struct
inherit ValueType
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Public Module Module1
Public Sub Main()
Dim rc1Pos As New Point(2, Console.CursorTop + 2)
Dim rc1 As New ConsoleRectangle(rc1Pos, New Size(32, 4), "▌"c, "▀"c, "▐"c, "▄"c)
rc1.Write()
Dim rc2Pos As New Point(2, Console.CursorTop + 2)
Dim rc2 As New ConsoleRectangle(rc2Pos, New Size(32, 4), "«"c, "—"c, "»"c, "—"c)
rc2.Write()
Dim rc3Pos As New Point(2, Console.CursorTop + 2)
Dim rc3 As New ConsoleRectangle(rc3Pos, New Size(11, 5), "▌"c, "▀"c, "▐"c, "▄"c)
rc3.Write()
Dim rc4Pos As New Point(rc3.X + (rc3.Width \ 2), rc3.Y + (rc3.Height \ 2))
Dim rc4 As New ConsoleRectangle(rc4Pos, rc3.Size, "X"c, "X"c, "X"c, "X"c)
rc4.Write()
Console.SetCursorPosition(rc1.X + 9, rc1.Y)
Console.Write(" Hello World ")
Console.SetCursorPosition(rc1.X + 6, rc1.Y + 2)
Console.Write(" By ElektroStudios ")
Console.CursorVisible = False
Console.ReadKey(intercept:=True)
End Sub
End Module
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
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. |
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. |
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. |
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. |
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) |