Table of Contents

Struct NativePoint

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

A wrapper for the native POINT structure.

public struct NativePoint
Inherited Members

Constructors

NativePoint(int, int)

Initialize the NativePoint

public NativePoint(int x, int y)

Parameters

x int

The x coordinate of the point.

y int

The y coordinate of the point.

Properties

X

The X coordinate of the point

public int X { readonly get; set; }

Property Value

int

Y

The Y coordinate of the point

public int Y { readonly get; set; }

Property Value

int

Methods

Equals(object)

Determines if this NativePoint is equal to another.

public override bool Equals(object obj)

Parameters

obj object

Another NativePoint to compare

Returns

bool

True if this NativePoint is equal obj; false otherwise.

GetHashCode()

Gets a hash code for the NativePoint.

public override int GetHashCode()

Returns

int

Hash code for the NativePoint

Operators

operator ==(NativePoint, NativePoint)

Determines if two NativePoints are equal.

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

Parameters

first NativePoint

First NativePoint

second NativePoint

Second NativePoint

Returns

bool

True if first NativePoint is equal to the second; false otherwise.

operator !=(NativePoint, NativePoint)

Determines if two NativePoints are not equal.

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

Parameters

first NativePoint

First NativePoint

second NativePoint

Second NativePoint

Returns

bool

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