Share via


MKMapView.ExchangeOverlays(IntPtr, IntPtr) Method

Definition

Swaps the index positions of two overlays.

[Foundation.Export("exchangeOverlayAtIndex:withOverlayAtIndex:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void ExchangeOverlays(IntPtr index1, IntPtr index2);
[<Foundation.Export("exchangeOverlayAtIndex:withOverlayAtIndex:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ExchangeOverlays : nativeint * nativeint -> unit
override this.ExchangeOverlays : nativeint * nativeint -> unit

Parameters

index1
IntPtr

nativeint

The index of the first overlay.

index2
IntPtr

nativeint

The index of the second overlay.

Attributes

Remarks

Changing the index positions of the overlays will swap their z-order on the map.

Applies to