UIKit.UITableView.MoveSection Method
Moves a section to a new location in the table view.

Syntax

[Foundation.Export("moveSection:toSection:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual void MoveSection (nint fromSection, nint toSection)

Parameters

fromSection
Index of the section to move.
toSection
Destination index for the section. The section currently at this index is moved up or down to accomodate the moved section.

Remarks

This method can be combined with other MoveSection, UITableView.InsertSections(Foundation.NSIndexSet, UITableViewRowAnimation) and UITableView.DeleteSections(Foundation.NSIndexSet, UITableViewRowAnimation) operations within an animation block defined by UITableView.BeginUpdates and UITableView.EndUpdates, so that all the changes occur in a single animation.

Unlike the insertion and deletion methods, moving a section does not use an animation paramter. Moved sections always animate straight from their starting position to their new position. Only one section can be moved per method call, however to move multiple sections application developers can call this method repeatedly within a UITableView.BeginUpdates-UITableView.EndUpdates animation block.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0