MKMapRect Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A rectangular area in a 2D map projection, measured in map points.
public struct MKMapRect
type MKMapRect = struct
- Inheritance
-
MKMapRect
Constructors
MKMapRect(Double, Double, Double, Double) |
Creates a new MKMapRect originating at [ |
MKMapRect(MKMapPoint, MKMapSize) |
Creates a new MKMapPoint struct with the specified |
Fields
Null | |
Origin |
The starting location of the MKMapRect. |
Size |
The extent of the MKMapRect. |
Properties
Height |
The height of this MKMapRect, in degrees. |
IsEmpty |
Whether the MKMapRect has a positive area. |
IsNull | |
MaxX |
The maximum X-axis value of the MKMapRect. |
MaxY |
The maximum Y-axis value of the MKMapRect. |
MidX |
The X-axis midpoint of the MKMapRect. |
MidY |
The Y-axis midpoint of the MKMapRect. |
MinX |
The minimum X-axis value of the MKMapRect. |
MinY |
The minimum Y-axis value of the MKMapRect. |
Spans180thMeridian |
Whether the MKMapRect crosses the ante-meridian. |
Width |
The extent along the X-axis of the MKMapRect. |
World |
The MKMapRect that represents the world in the 2D map projection. |
Methods
Contains(MKMapPoint) |
Whether the MKMapRect contains |
Contains(MKMapRect) |
Whether |
Divide(Double, CGRectEdge, MKMapRect) |
Splits this MKMapRect into a two smaller rectangle (returned value and |
Equals(Object) |
Whether this MKMapRect has the same P:MapKit.Origin and Size values as the |
GetHashCode() |
Returns a hash of this MKMapRect struct's value. |
Inset(Double, Double) |
Returns a new MKMapRect based on |
Intersection(MKMapRect, MKMapRect) |
Static method returning the intersection of |
Intersects(MKMapRect, MKMapRect) |
Whether |
Offset(Double, Double) |
A new MKMapRect whose origin is shifted by |
Remainder() |
A new MKMapRect that has been normalized to remove areas outside the world map's boundaries. |
ToString() |
A brief representation of the origin and size of the MKMapRect. |
Union(MKMapRect, MKMapRect) |
Returns the rectangle covering both |
Operators
Equality(MKMapRect, MKMapRect) |
Whether two MKMapRect objects have identical values. |
Inequality(MKMapRect, MKMapRect) |
Whether two MKMapRect objects have non-identical values. |