Table of Contents

Struct NativeRect

Namespace
Microsoft.WindowsAPICodePack.Shell
Assembly
Microsoft.WindowsAPICodePack.Shell.dll

A wrapper for a RECT struct

public struct NativeRect
Inherited Members

Constructors

NativeRect(int, int, int, int)

Creates a new NativeRect initialized with supplied values.

public NativeRect(int left, int top, int right, int bottom)

Parameters

left int

Position of left edge

top int

Position of top edge

right int

Position of right edge

bottom int

Position of bottom edge

Properties

Bottom

Position of bottom edge

public int Bottom { readonly get; set; }

Property Value

int

Left

Position of left edge

public int Left { readonly get; set; }

Property Value

int

Right

Position of right edge

public int Right { readonly get; set; }

Property Value

int

Top

Position of top edge

public int Top { readonly get; set; }

Property Value

int

Methods

Equals(object)

Determines if the NativeRect is equal to another Rect.

public override bool Equals(object obj)

Parameters

obj object

Another NativeRect to compare

Returns

bool

True if this NativeRect is equal to the one provided; false otherwise.

GetHashCode()

Creates a hash code for the NativeRect

public override int GetHashCode()

Returns

int

Returns hash code for this NativeRect

Operators

operator ==(NativeRect, NativeRect)

Determines if two NativeRects are equal.

public static bool operator ==(NativeRect first, NativeRect second)

Parameters

first NativeRect

First NativeRect

second NativeRect

Second NativeRect

Returns

bool

True if first NativeRect is equal to second; false otherwise.

operator !=(NativeRect, NativeRect)

Determines if two NativeRects are not equal

public static bool operator !=(NativeRect first, NativeRect second)

Parameters

first NativeRect

First NativeRect

second NativeRect

Second NativeRect

Returns

bool

True if first is not equal to second; false otherwise.