Xamarin.Forms by Xamarin Inc.

<PackageReference Include="Xamarin.Forms" Version="1.3.4.6332" />

.NET API 637,440 bytes

 Rectangle

public struct Rectangle
Struct defining a rectangle, using doubles.
public static Rectangle Zero

The Rectangle at {0,0} whose Size is {0,0}.

public double Bottom { get; set; }

The bottom of the Rectangle.

public Point Center { get; }

The Point halfway between Left and Right, Top and Bottom.

public double Height { get; set; }

Extent along the Y axis.

public bool IsEmpty { get; }

Whether this Rectangle has either Height or Width less than or equal to 0.

public double Left { get; set; }

The position of the Rectangle on the X axis.

public Point Location { get; set; }

The Point defined by Left and Top.

public double Right { get; set; }

The furthest extent along the X axis.

public Size Size { get; set; }

The extent of the Rectangle along its X and Y axes.

public double Top { get; set; }

The top of the Rectangle.

public double Width { get; set; }

The extent of this Rectangle along the X axis.

public double X { get; set; }

The position of this Rectangle on the X axis.

public double Y { get; set; }

The position of this Rectangle on the Y axis.

public Rectangle(double x, double y, double width, double height)

public Rectangle(Point loc, Size sz)

public static Rectangle FromLTRB(double left, double top, double right, double bottom)

Factory method to create a Rectangle from left, top, right, and bottom.

public static Rectangle Intersect(Rectangle r1, Rectangle r2)

A new Rectangle that is the intersection of r1 and r2.

public static bool op_Equality(Rectangle r1, Rectangle r2)

Whether two Rectangles have equal values.

public static bool op_Inequality(Rectangle r1, Rectangle r2)

Whether two Rectangles have unequal values.

public static Rectangle Union(Rectangle r1, Rectangle r2)

A new Rectangle whose bounds cover the union of r1 and r2.

public bool Contains(Rectangle rect)

Whether rect is entirely within, or along the periphery, of this Rectangle.

public bool Contains(Point pt)

Whether the pt is within, or along the periphery, of this Rectangle.

public bool Contains(double x, double y)

Whether the point described by x and y is within, or along the periphery of, this Rectangle.

public bool Equals(Rectangle other)

Whether a Rectangle has exactly the same values as this Rectangle.

public Rectangle Inflate(Size sz)

Creates a Rectangle whose borders are inflated in every direction.

public Rectangle Inflate(double width, double height)

Creates a Rectangle whose borders are inflated in every direction.

A new Rectangle that is the intersection of this and r.

public bool IntersectsWith(Rectangle r)

Whether this Rectangle intersects r.

public Rectangle Offset(double dx, double dy)

A new Rectangle whose Location is offset by dx and dy.

public Rectangle Offset(Point dr)

A new Rectangle whose Location is offset by dr.

public Rectangle Round()

Returns a new Rectangle whose values have been rounded to their nearest integral value.

A new Rectangle whose bounds cover the union of this Rectangle and r.