Table of Contents

Struct RECTL

Namespace
Wpf.Ui.Interop.WinDef
Assembly
Wpf.Ui.dll

The RECTL structure defines a rectangle by the coordinates of its upper-left and lower-right corners.

public struct RECTL
Inherited Members

Properties

Bottom

Gets or sets the y-coordinate of the lower-right corner of the rectangle.

public long Bottom { readonly get; set; }

Property Value

long

Height

Gets the height of the rectangle.

public readonly long Height { get; }

Property Value

long

Left

Gets or sets the x-coordinate of the upper-left corner of the rectangle.

public long Left { readonly get; set; }

Property Value

long

Position

Gets the position of the rectangle.

public POINTL Position { get; }

Property Value

POINTL

Right

Gets or sets the x-coordinate of the lower-right corner of the rectangle.

public long Right { readonly get; set; }

Property Value

long

Size

Gets the size of the rectangle.

public SIZE Size { get; }

Property Value

SIZE

Top

Gets or sets the y-coordinate of the upper-left corner of the rectangle.

public long Top { readonly get; set; }

Property Value

long

Width

Gets the width of the rectangle.

public readonly long Width { get; }

Property Value

long

Methods

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Offset(int, int)

Sets offset of the rectangle.

public void Offset(int dx, int dy)

Parameters

dx int
dy int

Union(RECTL, RECTL)

Combines two RECTLs

public static RECTL Union(RECTL rect1, RECTL rect2)

Parameters

rect1 RECTL
rect2 RECTL

Returns

RECTL

Operators

operator ==(RECTL, RECTL)

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

Parameters

left RECTL
right RECTL

Returns

bool

operator !=(RECTL, RECTL)

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

Parameters

left RECTL
right RECTL

Returns

bool