Struct Size
Stores an ordered pair of integers, which specify a Height and Width.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Terminal.Gui.dll
Syntax
Constructors
|
Improve this Doc
View Source
Size(Int32, Int32)
Size Constructor
Declaration
public Size(int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
System.Int32 |
height |
|
|
Improve this Doc
View Source
Size(Point)
Size Constructor
Declaration
Parameters
Type |
Name |
Description |
Point |
pt |
|
Fields
|
Improve this Doc
View Source
Empty
Gets a Size structure that has a Height and Width value of 0.
Declaration
public static readonly Size Empty
Field Value
Properties
|
Improve this Doc
View Source
Height
Height Property
Declaration
public int Height { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IsEmpty
IsEmpty Property
Declaration
public readonly bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Width
Width Property
Declaration
public int Width { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Add(Size, Size)
Adds the width and height of one Size structure to the width and height of another Size structure.
Declaration
public static Size Add(Size sz1, Size sz2)
Parameters
Type |
Name |
Description |
Size |
sz1 |
The first Size structure to add. |
Size |
sz2 |
The second Size structure to add. |
Returns
Type |
Description |
Size |
The add. |
|
Improve this Doc
View Source
Equals(Object)
Equals Method
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
GetHashCode Method
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Subtract(Size, Size)
Subtracts the width and height of one Size structure to the width and height of another Size structure.
Declaration
public static Size Subtract(Size sz1, Size sz2)
Parameters
Type |
Name |
Description |
Size |
sz1 |
The first Size structure to subtract. |
Size |
sz2 |
The second Size structure to subtract. |
Returns
Type |
Description |
Size |
The subtract. |
|
Improve this Doc
View Source
ToString()
ToString Method
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Addition(Size, Size)
Addition Operator
Declaration
public static Size operator +(Size sz1, Size sz2)
Parameters
Returns
|
Improve this Doc
View Source
Equality(Size, Size)
Equality Operator
Declaration
public static bool operator ==(Size sz1, Size sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Explicit(Size to Point)
Size to Point Conversion
Declaration
public static explicit operator Point(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
|
Improve this Doc
View Source
Inequality(Size, Size)
Inequality Operator
Declaration
public static bool operator !=(Size sz1, Size sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Subtraction(Size, Size)
Subtraction Operator
Declaration
public static Size operator -(Size sz1, Size sz2)
Parameters
Returns