C# Class FlickrNet.PhotoCollection

Inheritance: System.Collections.CollectionBase
Afficher le fichier Open project: mono/flickr-sharp Class Usage Examples

Méthodes publiques

Méthode Description
Add ( Photo photo ) : int

Adds a Photo to the collection.

AddRange ( Photo photos ) : void

Adds an array of Photo instances to this collection.

AddRange ( PhotoCollection collection ) : void

Adds all of the photos in another PhotoCollection to this collection.

Contains ( Photo photo ) : bool

Returns true if the collection contains the photo.

CopyTo ( Photo array, int index ) : void

Copies the elements of the collection to an array of Photo, starting at a particular index.

FromPhotoArray ( Photo photos ) : PhotoCollection

Creates a PhotoCollection from an array of Photo objects.

IndexOf ( Photo photo ) : int

Gets the index of a photo in this collection.

Insert ( int index, Photo photo ) : void

Inserts a Photo into the collection at the given index.

PhotoCollection ( ) : System

Default constructor.

PhotoCollection ( Photo photos ) : System

Creates an instance of the PhotoCollection from an array of Photo instances.

Remove ( Photo photo ) : void

Removes a photo from the collection.

ToPhotoArray ( ) : FlickrNet.Photo[]

Converts the collection to an array of Photo objects.

this ( int index ) : Photo

Gets or sets a photo based on the index in the collection.

Method Details

Add() public méthode

Adds a Photo to the collection.
public Add ( Photo photo ) : int
photo Photo The instance to add to the collection.
Résultat int

AddRange() public méthode

Adds an array of Photo instances to this collection.
public AddRange ( Photo photos ) : void
photos Photo An array of instances.
Résultat void

AddRange() public méthode

Adds all of the photos in another PhotoCollection to this collection.
public AddRange ( PhotoCollection collection ) : void
collection PhotoCollection The containing the photos to add /// to this collection.
Résultat void

Contains() public méthode

Returns true if the collection contains the photo.
public Contains ( Photo photo ) : bool
photo Photo The instance to try to find.
Résultat bool

CopyTo() public méthode

Copies the elements of the collection to an array of Photo, starting at a particular index.
public CopyTo ( Photo array, int index ) : void
array Photo The array to copy to.
index int The index in the collection to start copying from.
Résultat void

FromPhotoArray() public static méthode

Creates a PhotoCollection from an array of Photo objects.
public static FromPhotoArray ( Photo photos ) : PhotoCollection
photos Photo An array of objects.
Résultat PhotoCollection

IndexOf() public méthode

Gets the index of a photo in this collection.
public IndexOf ( Photo photo ) : int
photo Photo The photo to find.
Résultat int

Insert() public méthode

Inserts a Photo into the collection at the given index.
public Insert ( int index, Photo photo ) : void
index int The index to insert the into. /// Subsequent photos will be moved up.
photo Photo The to insert.
Résultat void

PhotoCollection() public méthode

Default constructor.
public PhotoCollection ( ) : System
Résultat System

PhotoCollection() public méthode

Creates an instance of the PhotoCollection from an array of Photo instances.
public PhotoCollection ( Photo photos ) : System
photos Photo An array of instances.
Résultat System

Remove() public méthode

Removes a photo from the collection.
public Remove ( Photo photo ) : void
photo Photo The instance to remove from the collection.
Résultat void

ToPhotoArray() public méthode

Converts the collection to an array of Photo objects.
public ToPhotoArray ( ) : FlickrNet.Photo[]
Résultat FlickrNet.Photo[]

this() public méthode

Gets or sets a photo based on the index in the collection.
public this ( int index ) : Photo
index int
Résultat Photo