Share via


Point Structure

Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Input
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public Structure Point
public struct Point
public value class Point
[<Sealed>]
type Point =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The Point type exposes the following members.

Constructors

  Name Description
Public method Point(Int32) Initializes a new instance of the Point class using coordinates specified by an integer value.
Public method Point(Int32, Int32) Initializes a new instance of the class with the specified coordinates.

Top

Properties

  Name Description
Public property IsEmpty Gets a value indicating whether this is empty.
Public property X Gets the x-coordinate of this instance.
Public property Y Gets the y-coordinate of this instance.

Top

Methods

  Name Description
Public method Equals Specifies whether this System.Drawing.Point contains the same coordinates as the specified System.Object &gt;. (Overrides ValueType.Equals(Object).)
Public method GetHashCode Returns the hash code of the object. (Overrides ValueType.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Converts this System.Drawing.Point to a human readable. (Overrides ValueType.ToString.)

Top

Operators

  Name Description
Public operatorStatic member Equality Compares two System.Drawing.Point objects. The result specifies whether the values of the System.Drawing.Point.X and System.Drawing.Point.Y' properties of the two System.Drawing.Point objects are equal.
Public operatorStatic member Inequality Compares two System.Drawing.Point objects. The result specifies whether the values of the System.Drawing.Point.X and System.Drawing.Point.Y' properties of the two System.Drawing.Point objects are not equal.

Top

Fields

  Name Description
Public fieldStatic member Empty Creates a new instance of the Point class with member data left uninitialized.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITest.Input Namespace