Size Struct

Represents a size.
[DebuggerDisplay("{Width,nq}x{Height,nq}")]
public struct Size : ValueType
Namespace
Spectre.Console
Base Types
  • ValueType

Attributes

DebuggerDisplayAttribute

Constructors

Size(int, int)
Initializes a new instance of the Size struct.

Properties

int Height
Gets the height.
int Width
Gets the width.

Extension Methods

T And<Size>(Action<Size>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.