Struct SizeF
Represents the size of a rectangular region with an ordered pair of width and height.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Terminal.Gui.dll
Syntax
public struct SizeF : IEquatable<SizeF>
Constructors
|
Improve this Doc
View Source
SizeF(Single, Single)
Initializes a new instance of the
SizeF class from the specified dimensions.
Declaration
public SizeF(float width, float height)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
System.Single |
height |
|
|
Improve this Doc
View Source
SizeF(PointF)
Initializes a new instance of the
SizeF class from the specified
PointF.
Declaration
Parameters
Type |
Name |
Description |
PointF |
pt |
|
|
Improve this Doc
View Source
SizeF(SizeF)
Initializes a new instance of the
SizeF class from the specified
existing
SizeF.
Declaration
Parameters
Type |
Name |
Description |
SizeF |
size |
|
Fields
|
Improve this Doc
View Source
Empty
Initializes a new instance of the
SizeF class.
Declaration
public static readonly SizeF Empty
Field Value
Properties
|
Improve this Doc
View Source
Height
Represents the vertical component of this
SizeF.
Declaration
public float Height { get; set; }
Property Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
IsEmpty
Tests whether this
SizeF has zero width and height.
Declaration
[Browsable(false)]
public readonly bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Width
Represents the horizontal component of this
SizeF.
Declaration
public float Width { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
|
Improve this Doc
View Source
Add(SizeF, SizeF)
Performs vector addition of two
SizeF objects.
Declaration
public static SizeF Add(SizeF sz1, SizeF sz2)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Tests to see whether the specified object is a
SizeF with the same dimensions
as this
SizeF.
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
Equals(SizeF)
Tests whether two
SizeF objects are identical.
Declaration
public bool Equals(SizeF other)
Parameters
Type |
Name |
Description |
SizeF |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Generates a hashcode from the width and height
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Subtract(SizeF, SizeF)
Declaration
public static SizeF Subtract(SizeF sz1, SizeF sz2)
Parameters
Returns
|
Improve this Doc
View Source
ToString()
Creates a human-readable string that represents this
SizeF.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Addition(SizeF, SizeF)
Performs vector addition of two
SizeF objects.
Declaration
public static SizeF operator +(SizeF sz1, SizeF sz2)
Parameters
Returns
|
Improve this Doc
View Source
Division(SizeF, Single)
Declaration
public static SizeF operator /(SizeF left, float right)
Parameters
Type |
Name |
Description |
SizeF |
left |
Dividend of type SizeF. |
System.Single |
right |
Divisor of type System.Int32. |
Returns
|
Improve this Doc
View Source
Equality(SizeF, SizeF)
Tests whether two
SizeF objects are identical.
Declaration
public static bool operator ==(SizeF sz1, SizeF sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Explicit(SizeF to PointF)
Declaration
public static explicit operator PointF(SizeF size)
Parameters
Type |
Name |
Description |
SizeF |
size |
|
Returns
|
Improve this Doc
View Source
Inequality(SizeF, SizeF)
Tests whether two
SizeF objects are different.
Declaration
public static bool operator !=(SizeF sz1, SizeF sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Multiply(Single, SizeF)
Multiplies
SizeF by a
System.Single producing
SizeF.
Declaration
public static SizeF operator *(float left, SizeF right)
Parameters
Type |
Name |
Description |
System.Single |
left |
Multiplier of type System.Single. |
SizeF |
right |
Multiplicand of type SizeF. |
Returns
|
Improve this Doc
View Source
Multiply(SizeF, Single)
Multiplies
SizeF by a
System.Single producing
SizeF.
Declaration
public static SizeF operator *(SizeF left, float right)
Parameters
Type |
Name |
Description |
SizeF |
left |
Multiplicand of type SizeF. |
System.Single |
right |
Multiplier of type System.Single. |
Returns
|
Improve this Doc
View Source
Subtraction(SizeF, SizeF)
Declaration
public static SizeF operator -(SizeF sz1, SizeF sz2)
Parameters
Returns
Implements
System.IEquatable<T>