[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Size2L

Struct Size2L

Namespace
GrapeCity.Documents.DX
Assembly
GcDocs.DX.Windows.dll

Structure specifing a size with integer Width and Height.

public struct Size2L : IEquatable<Size2L>
Implements
System.IEquatable<T><Size2L>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

Size2L(Size)

Initializes a new instance of the Size2L struct.

public Size2L(Size sz)

Parameters

sz System.Drawing.Size

Size2L(int, int)

Initializes a new instance of the Size2L struct.

public Size2L(int width, int height)

Parameters

width int
height int

Fields

Empty

An empty size.

public static readonly Size2L Empty

Field Value

Size2L

Height

The vertical component of this Size2L structure.

public int Height

Field Value

int

Infinite

An infinite size.

public static readonly Size2L Infinite

Field Value

Size2L

SizeInBytes

The size of the Size2L type, in bytes.

public const int SizeInBytes = 8

Field Value

int

Width

The horizontal component of this Size2L structure.

public int Width

Field Value

int

Properties

IsEmpty

Determines if all components of Size2L are equal to zero.

public bool IsEmpty { get; }

Property Value

bool

Methods

Add(Size2L, Size2L)

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)

Parameters

sz1 Size2L
sz2 Size2L

Returns

Size2L

Equals(Size2L)

Indicates whether this instance and a specified object are equal.

public bool Equals(Size2L other)

Parameters

other Size2L

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

Subtract(Size2L, Size2L)

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)

Parameters

sz1 Size2L
sz2 Size2L

Returns

Size2L

ToSize()

Converts Size2L to System.Drawing.Size.

public Size ToSize()

Returns

System.Drawing.Size

ToSize2D()

Converts Size2L to Size2D.

public Size2D ToSize2D()

Returns

Size2D

ToSize2F()

Converts Size2L to Size2F.

public Size2F ToSize2F()

Returns

Size2F

ToString()

Returns a string that represents the current Size2L object.

public override string ToString()

Returns

string

Operators

operator ==(Size2L, Size2L)

Determines if the specified Size2L objects are equal.

public static bool operator ==(Size2L left, Size2L right)

Parameters

left Size2L
right Size2L

Returns

bool

explicit operator Size(Size2L)

Performs an explicit conversion from Size2L to System.Drawing.Size.

public static explicit operator Size(Size2L value)

Parameters

value Size2L

Returns

System.Drawing.Size

explicit operator Size2L(Size)

Performs an explicit conversion from System.Drawing.Size to Size2L.

public static explicit operator Size2L(Size sz)

Parameters

sz System.Drawing.Size

Returns

Size2L

operator !=(Size2L, Size2L)

Determines if the specified Size2L objects are not equal.

public static bool operator !=(Size2L left, Size2L right)

Parameters

left Size2L
right Size2L

Returns

bool