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
intPosition of left edge
top
intPosition of top edge
right
intPosition of right edge
bottom
intPosition of bottom edge
Properties
Bottom
Position of bottom edge
public int Bottom { readonly get; set; }
Property Value
Left
Position of left edge
public int Left { readonly get; set; }
Property Value
Right
Position of right edge
public int Right { readonly get; set; }
Property Value
Top
Position of top edge
public int Top { readonly get; set; }
Property Value
Methods
Equals(object)
Determines if the NativeRect is equal to another Rect.
public override bool Equals(object obj)
Parameters
obj
objectAnother 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
NativeRectFirst NativeRect
second
NativeRectSecond 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
NativeRectFirst NativeRect
second
NativeRectSecond NativeRect
Returns
- bool
True if first is not equal to second; false otherwise.