C# 클래스 FlickrNet.PhotoCollection

상속: System.Collections.CollectionBase
파일 보기 프로젝트 열기: mono/flickr-sharp 1 사용 예제들

공개 메소드들

메소드 설명
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