MKMapRect.Divide(Double, CGRectEdge, MKMapRect) 方法

定义

将此 MKMapRect 拆分为两个较小的矩形 (返回的值和 remainder) 。

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

参数

amount
Double
edge
CGRectEdge
remainder
MKMapRect

返回

注解

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}}

适用于