MKMapRect.Divide(Double, CGRectEdge, MKMapRect) Method

Definition

Splits this MKMapRect into a two smaller rectangle (returned value and remainder).

public MapKit.MKMapRect Divide (double amount, CoreGraphics.CGRectEdge edge, out MapKit.MKMapRect remainder);
member this.Divide : double * CoreGraphics.CGRectEdge *  -> MapKit.MKMapRect

Parameters

amount
Double
edge
CGRectEdge
remainder
MKMapRect

Returns

Remarks

var rect = new MKMapRect(new MKMapPoint(19, -122), new MKMapSize(10, 10));

//Cannot make null because MKMapRect is a value type
var r2 = new MKMapRect();

//Divide into smaller rectangles
var slice = rect.Divide (5.0, new CGRectEdge(), out r2);
// slice = {{19,-122},{5, 10}} , r2 = {{24, -122},{5, 10}}

Applies to