Skip to content

ScreenPoint

Namespace: ThinkGeo.Core

This structure represents a single point in screen coordinates.

public struct ScreenPoint

Inheritance ObjectValueTypeScreenPoint

Remarks:

None

Properties

X

This property returns the X, or horizontal, value of the screen point.

public int X { get; }

Property Value

Int32
This property returns the X, or horizontal, value of the screen point.

Y

This property returns the Y, or vertical, value of the screen point.

public int Y { get; }

Property Value

Int32
This property returns the Y, or vertical, value of the screen point.

Remarks:

None

Constructors

ScreenPoint(Int32, Int32)

This constructor allows you to create a screen point by passing in an X & Y.

ScreenPoint(int x, int y)

Parameters

x Int32
This parameter represents the horizontal value of a screen point.

y Int32
This parameter represents the vertical value of a screen point.

Remarks:

None

Methods

ToString()

string ToString()

Returns

String

Equals(Object)

This method is an override of the Equals functionality.

bool Equals(object obj)

Parameters

obj Object

        This parameter is the object you want to check to see if it is equal to the current
        instance.

Returns

Boolean
This method returns the Equals functionality.

Exceptions

ArgumentNullException
If you pass a null as the obj, we will throw an ArgumentNullException.

Remarks:

None

GetHashCode()

This method is an override of the GetHashCode functionality.

int GetHashCode()

Returns

Int32
This method returns the hash code.

Remarks:

None