共用方式為


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

適用於