C# Класс FlickrNet.PhotoCollection

Наследование: System.Collections.CollectionBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

Adds a Photo to the collection.
public Add ( Photo photo ) : int
photo Photo The instance to add to the collection.
Результат int

AddRange() публичный Метод

Adds an array of Photo instances to this collection.
public AddRange ( Photo photos ) : void
photos Photo An array of instances.
Результат void

AddRange() публичный Метод

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.
Результат void

Contains() публичный Метод

Returns true if the collection contains the photo.
public Contains ( Photo photo ) : bool
photo Photo The instance to try to find.
Результат bool

CopyTo() публичный Метод

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.
Результат void

FromPhotoArray() публичный статический Метод

Creates a PhotoCollection from an array of Photo objects.
public static FromPhotoArray ( Photo photos ) : PhotoCollection
photos Photo An array of objects.
Результат PhotoCollection

IndexOf() публичный Метод

Gets the index of a photo in this collection.
public IndexOf ( Photo photo ) : int
photo Photo The photo to find.
Результат int

Insert() публичный Метод

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.
Результат void

PhotoCollection() публичный Метод

Default constructor.
public PhotoCollection ( ) : System
Результат System

PhotoCollection() публичный Метод

Creates an instance of the PhotoCollection from an array of Photo instances.
public PhotoCollection ( Photo photos ) : System
photos Photo An array of instances.
Результат System

Remove() публичный Метод

Removes a photo from the collection.
public Remove ( Photo photo ) : void
photo Photo The instance to remove from the collection.
Результат void

ToPhotoArray() публичный Метод

Converts the collection to an array of Photo objects.
public ToPhotoArray ( ) : FlickrNet.Photo[]
Результат FlickrNet.Photo[]

this() публичный Метод

Gets or sets a photo based on the index in the collection.
public this ( int index ) : Photo
index int
Результат Photo