MKMapView.MapRectThatFits Method
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.
Overloads
MapRectThatFits(MKMapRect) |
Adjusts the width and height of a map rectangle so it fist in the map view's frame. |
MapRectThatFits(MKMapRect, NSEdgeInsets) | |
MapRectThatFits(MKMapRect, UIEdgeInsets) |
Adjusts the width and height of a map rectangle so it fits in the map view's frame, including accounting for padding between the frame and the map rectangle. |
MapRectThatFits(MKMapRect)
Adjusts the width and height of a map rectangle so it fist in the map view's frame.
[Foundation.Export("mapRectThatFits:")]
public virtual MapKit.MKMapRect MapRectThatFits (MapKit.MKMapRect mapRect);
abstract member MapRectThatFits : MapKit.MKMapRect -> MapKit.MKMapRect
override this.MapRectThatFits : MapKit.MKMapRect -> MapKit.MKMapRect
Parameters
- mapRect
- MKMapRect
The rectangle that needs to be adjusted to fit in the map view's frame.
Returns
The adjusted rectangle.
- Attributes
Remarks
The center point of the map remains unchanged.
Applies to
MapRectThatFits(MKMapRect, NSEdgeInsets)
[Foundation.Export("mapRectThatFits:edgePadding:")]
public virtual MapKit.MKMapRect MapRectThatFits (MapKit.MKMapRect mapRect, AppKit.NSEdgeInsets edgePadding);
abstract member MapRectThatFits : MapKit.MKMapRect * AppKit.NSEdgeInsets -> MapKit.MKMapRect
override this.MapRectThatFits : MapKit.MKMapRect * AppKit.NSEdgeInsets -> MapKit.MKMapRect
Parameters
- mapRect
- MKMapRect
- edgePadding
- NSEdgeInsets
Returns
- Attributes
Applies to
MapRectThatFits(MKMapRect, UIEdgeInsets)
Adjusts the width and height of a map rectangle so it fits in the map view's frame, including accounting for padding between the frame and the map rectangle.
[Foundation.Export("mapRectThatFits:edgePadding:")]
public virtual MapKit.MKMapRect MapRectThatFits (MapKit.MKMapRect mapRect, UIKit.UIEdgeInsets edgePadding);
abstract member MapRectThatFits : MapKit.MKMapRect * UIKit.UIEdgeInsets -> MapKit.MKMapRect
override this.MapRectThatFits : MapKit.MKMapRect * UIKit.UIEdgeInsets -> MapKit.MKMapRect
Parameters
- mapRect
- MKMapRect
The rectangle that needs to be adjusted to fit in the map view's frame.
- edgePadding
- UIEdgeInsets
The insets values to pad the map rectangle with.
Returns
The adjusted rectangle.
- Attributes
Remarks
The center point of the map remains unchanged.