Table of Contents

Struct Size

Namespace
HP.LFT.Common.Linux.Drawing
Assembly
HP.LFT.Common.Standard.dll

Size structure

public struct Size
Inherited Members

Constructors

Size(int, int)

public Size(int width, int height)

Parameters

width int
height int

Fields

Empty

Empty Size object

public static readonly Size Empty

Field Value

Size

Properties

Height

public int Height { get; set; }

Property Value

int

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Width

public int Width { get; set; }

Property Value

int

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator +(Size, Size)

public static Size operator +(Size sz1, Size sz2)

Parameters

sz1 Size
sz2 Size

Returns

Size

operator /(Size, int)

public static Size operator /(Size sz, int divisor)

Parameters

sz Size
divisor int

Returns

Size

operator ==(Size, Size)

public static bool operator ==(Size size1, Size size2)

Parameters

size1 Size
size2 Size

Returns

bool

operator !=(Size, Size)

public static bool operator !=(Size size1, Size size2)

Parameters

size1 Size
size2 Size

Returns

bool

operator *(Size, int)

public static Size operator *(Size sz, int multiplier)

Parameters

sz Size
multiplier int

Returns

Size

operator -(Size, Size)

public static Size operator -(Size sz1, Size sz2)

Parameters

sz1 Size
sz2 Size

Returns

Size