Point Structure

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

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.8.0.0 (20.8.0)
Syntax
C#
public struct Point

The Point type exposes the following members.

Constructors
  NameDescription
Public methodPoint
Initializes a new instance of the Point struct with the specified coordinates.
Properties
  NameDescription
Public propertyIsEmpty
Gets a value indicating whether this this Point is empty.
Public propertyX
Gets or sets the x-coordinate of this Point.
Public propertyY
Gets or sets the y-coordinate of this Point.
Methods
  NameDescription
Public methodStatic memberAdd
Adds the specified Size to the specified Point.
Public methodEquals
Specifies whether this Point contains the same coordinates as the specified Object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this Point.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodOffset(Point)
Translates this Point by the specified Point.
Public methodOffset(Int32, Int32)
Translates this Point by the specified amount.
Public methodStatic memberRound
Converts the specified PointF to a Point object by rounding the Point values to the nearest integer.
Public methodToString (Inherited from ValueType.)
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal.
Public operatorStatic member(Point to PointF)
Converts the specified Point structure to a PointF structure.
Public operatorStatic memberInequality
Compares two Point objects. The result specifies whether the values of the X or Y properties of the two Point objects are unequal.
Fields
  NameDescription
Public fieldStatic memberEmpty
Represents a Point that has X and Y values set to zero.
See Also