[]
Structure specifing a size with integer Width and Height.
public struct Size2L : IEquatable<Size2L>
Initializes a new instance of the Size2L struct.
public Size2L(Size sz)
sz
System.Drawing.SizeInitializes a new instance of the Size2L struct.
public Size2L(int width, int height)
width
intheight
intAn empty size.
public static readonly Size2L Empty
The vertical component of this Size2L structure.
public int Height
An infinite size.
public static readonly Size2L Infinite
The size of the Size2L type, in bytes.
public const int SizeInBytes = 8
The horizontal component of this Size2L structure.
public int Width
Determines if all components of Size2L are equal to zero.
public bool IsEmpty { get; }
Adds the width and height of one Size2L structure to the width and height of another Size2L structure.
public static Size2L Add(Size2L sz1, Size2L sz2)
Indicates whether this instance and a specified object are equal.
public bool Equals(Size2L other)
other
Size2LIndicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
obj
objectServes as the default hash function.
public override int GetHashCode()
Subtracts the width and height of one Size2L structure from the width and height of another Size2L structure.
public static Size2L Subtract(Size2L sz1, Size2L sz2)
Converts Size2L to System.Drawing.Size.
public Size ToSize()
public Size2D ToSize2D()
public Size2F ToSize2F()
Returns a string that represents the current Size2L object.
public override string ToString()
Determines if the specified Size2L objects are equal.
public static bool operator ==(Size2L left, Size2L right)
Performs an explicit conversion from Size2L to System.Drawing.Size.
public static explicit operator Size(Size2L value)
value
Size2LPerforms an explicit conversion from System.Drawing.Size to Size2L.
public static explicit operator Size2L(Size sz)
sz
System.Drawing.SizeDetermines if the specified Size2L objects are not equal.
public static bool operator !=(Size2L left, Size2L right)