Struct ScreenPoint
This structure represents a single point in screen coordinates.
public struct ScreenPoint
- Inherited Members
Remarks
None
Constructors
ScreenPoint(int, int)
This constructor allows you to create a screen point by passing in an X & Y.
public ScreenPoint(int x, int y)
Parameters
x
intThis parameter represents the horizontal value of a screen point.
y
intThis parameter represents the vertical value of a screen point.
Remarks
None
Properties
X
This property returns the X, or horizontal, value of the screen point.
public int X { get; }
Property Value
- int
This property returns the X, or horizontal, value of the screen point.
Examples
None
Y
This property returns the Y, or vertical, value of the screen point.
public int Y { get; }
Property Value
- int
This property returns the Y, or vertical, value of the screen point.
Remarks
None
Methods
Equals(object)
This method is an override of the Equals functionality.
public override bool Equals(object obj)
Parameters
obj
objectThis parameter is the object you want to check to see if it is equal to the current instance.
Returns
- bool
This method returns the Equals functionality.
Remarks
None
Exceptions
- ArgumentNullException
If you pass a null as the obj, we will throw an ArgumentNullException.
GetHashCode()
This method is an override of the GetHashCode functionality.
public override int GetHashCode()
Returns
- int
This method returns the hash code.
Remarks
None
ToString()
public override string ToString()
Returns
Operators
operator ==(ScreenPoint, ScreenPoint)
This method is an override of the == functionality.
public static bool operator ==(ScreenPoint screenPoint1, ScreenPoint screenPoint2)
Parameters
screenPoint1
ScreenPointThis parameter is the first screenPoint to compare with.
screenPoint2
ScreenPointThis parameter is the second screenPoint to compare width.
Returns
- bool
None
Remarks
None
Exceptions
- ArgumentNullException
If you pass a null as the sourceScreenPoint, we will throw an ArgumentNullException.
- ArgumentNullException
If you pass a null as the targetScreenPoint, we will throw an ArgumentNullException.
operator !=(ScreenPoint, ScreenPoint)
This method is an override of the != functionality.
public static bool operator !=(ScreenPoint screenPoint1, ScreenPoint screenPoint2)
Parameters
screenPoint1
ScreenPointThis parameter represents the first GeoColor to compare.
screenPoint2
ScreenPointThis parameter represents the second GeoColor to compare.
Returns
Remarks
None
Exceptions
- ArgumentNullException
If you pass a null as the sourceScreenPoint, we will throw an ArgumentNullException.
- ArgumentNullException
If you pass a null as the targetScreenPoint, we will throw an ArgumentNullException.