PictureAlbumCollection.Item Property

Gets the PictureAlbum at the specified index in the PictureAlbumCollection.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public PictureAlbum this [
         int index
] { get; }

Property Value

A new PictureAlbum representing the picture album at the specified index in this PictureAlbumCollection.

Each call returns a new PictureAlbum instance.

PictureAlbum resources such as the picture collection and children picture albums collection are cached in each PictureAlbum instance. Retrieving and maintaining references to multiple instances of the same picture album, and then accessing the picture collection (PictureAlbum.Pictures) or children picture albums collection (PictureAlbum.Albums) on each of those instances, creates multiple copies of the resources.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions