[]
        
(Showing Draft Content)

C1.Util.DX.Size2L

Size2L Struct

Structure specifing a size with integer Width and Height.

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public struct Size2L : IEquatable<Size2L>

Constructors

Name Description
Size2L(Size)

Initializes a new instance of the Size2L struct.

Size2L(int, int)

Initializes a new instance of the Size2L struct.

Fields

Name Description
Empty

An empty size.

Height

The vertical component of this Size2L structure.

Infinite

An infinite size.

SizeInBytes

The size of the Size2L type, in bytes.

Width

The horizontal component of this Size2L structure.

Properties

Name Description
IsEmpty

Determines if all components of Size2L are equal to zero.

Methods

Name Description
Add(Size2L, Size2L)

Adds the width and height of one Size2L structure to the width and height of another Size2L structure.

Equals(Size2L)

Indicates whether this instance and a specified object are equal.

Equals(object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Serves as the default hash function.

Subtract(Size2L, Size2L)

Subtracts the width and height of one Size2L structure from the width and height of another Size2L structure.

ToSize()

Converts Size2L to Size.

ToSize2D()

Converts Size2L to Size2D.

ToSize2F()

Converts Size2L to Size2F.

ToString()

Returns a string that represents the current Size2L object.

Operators

Name Description
operator ==(Size2L, Size2L)

Determines if the specified Size2L objects are equal.

explicit operator Size(Size2L)

Performs an explicit conversion from Size2L to Size.

explicit operator Size2L(Size)

Performs an explicit conversion from Size to Size2L.

operator !=(Size2L, Size2L)

Determines if the specified Size2L objects are not equal.