See Also: MPMediaQuerySection Members
MonoTouch.MediaPlayer.MPMediaQuerySections represent a subset of results of a MonoTouch.MediaPlayer.MPMediaQuery. You can control the grouping by specifying the MonoTouch.MPMediaQuery.GroupingType as shown in the following example, which outputs the songs from albums whose title's start with the letter 'S':
C# Example
var mq = new MPMediaQuery(); mq.GroupingType = MPMediaGrouping.Album; var value = NSNumber.FromInt32((int)MPMediaType.Music); var predicate = MPMediaPropertyPredicate.PredicateWithValue(value, MPMediaItem.MediaTypeProperty); mq.AddFilterPredicate(predicate); var items = mq.Items; var secs = mq.ItemSections; if(secs != null) { var songsFromSAlbums = from sSection in from sec in secs where sec.Title == "S" select sec from song in items.Skip(sSection.Range.Location).Take(sSection.Range.Length) select song; foreach(var song in songsFromSAlbums) { Console.WriteLine(song.Title + ": " + song.AlbumTitle); } }