Skip to content

ScreenPointF

Namespace: ThinkGeo.Core

This structure represents a single point in screen coordinates.

public struct ScreenPointF

Inheritance ObjectValueTypeScreenPointF

Remarks:

None

Properties

X

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

public float X { get; }

Property Value

Single
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 float Y { get; }

Property Value

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

Remarks:

None

Constructors

ScreenPointF(Single, Single)

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

ScreenPointF(float x, float y)

Parameters

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

y Single
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