Xamarin.Forms.Point Members

The members of Xamarin.Forms.Point are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Creates a new Xamarin.Forms.Point object that has coordinates that are specified by the width and height of sz, in that order.
Creates a new Xamarin.Forms.Point object that represents the point (x,y).

Public Fields

static
ZeroPoint. The Xamarin.Forms.Point at {0,0}.

Public Properties

[read-only]
IsEmptybool. Whether both X and Y are 0.
Xdouble. Location along the horizontal axis.
Ydouble. Location along the vertical axis.

Public Methods

Distance(Point) : double
Calculates the distance between two points.
override
Equals(object) : bool
Returns true if the X and Y values of this are exactly equal to those in the argument.
override
GetHashCode() : int
Returns a hash value for the Xamarin.Forms.Point.
Offset(double, double) : Point
Returns a new Xamarin.Forms.Point that translates the current Xamarin.Forms.Point by dx and dy.
Round() : Point
Returns a new Xamarin.Forms.Point whose Point.X and Point.Y have been rounded to the nearest integral value.
override
ToString() : string
A human-readable representation of the Xamarin.Forms.Point.

Public Operators

static
Addition(Point, Size)Returns a new Xamarin.Forms.Point by adding a Xamarin.Forms.Size to a Xamarin.Forms.Point.
static
Equality(Point, Point)Whether the two Xamarin.Forms.Points are equal.
static
Inequality(Point, Point)Whether two points are not equal.
static
Subtraction(Point, Size)Returns a new Xamarin.Forms.Point by subtracting a Xamarin.Forms.Size from a Xamarin.Forms.Point.
static
Conversion to Xamarin.Forms.Size(Explicit)Returns a new Xamarin.Forms.Size whose Size.Width and Size.Height and equivalent to the pt's Point.X and Point.Y properties.