UIView.ExchangeSubview(nint, nint) Method

Definition

This method exchanges the indices of two UIViews within the Subviews array.

[Foundation.Export("exchangeSubviewAtIndex:withSubviewAtIndex:")]
public virtual void ExchangeSubview (nint atIndex, nint withSubviewAtIndex);
abstract member ExchangeSubview : nint * nint -> unit
override this.ExchangeSubview : nint * nint -> unit

Parameters

atIndex
nint

An index within the zero-based Subviews array.

withSubviewAtIndex
nint

Another index within the zero-based Subviews array.

Attributes

Applies to

See also

  • <xref:UIKit.UIView.AddSubview>
  • <xref:UIKit.UIView.InsertSubview>
  • <xref:UIKit.UIView.InsertSubviewAbove>
  • <xref:UIKit.UIView.InsertSubviewBelow>