Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

LandmarkCollection class

Bing

Provides access to a collection of Landmark objects.

Constructor

Definition Description

LandmarkCollection()

Initializes a new instance of the LandmarkCollection class.

Methods

Name Definition Return Type Description

Add [C#,VB]

Add( Landmark item)

None

Adds the given item to the end of the collection.

Append [C++]

Append( Landmark ^ item)

None

Appends the given item to the end of the collection.

Clear [C++,C#,VB]

Clear()

None

Removes all items from the collection.

Contains [C#,VB]

Contains( Landmark item)

bool

Determines whether the specified item is in the collection. Returns true if the item is found in the collection or false if it is not found.

CopyTo [C#,VB]

CopyTo( Landmark [] array, int arrayIndex)

None

Copies the items in the collection to an array, starting at the specified array index.

First [C++]

First()

IIterator<Landmark>

Returns the iterator for iteration over the items in the collection.

GetAt [C++]

GetAt(unsigned int index)

Landmark

Returns the item in the collection at the specified index.

GetMany [C++]

GetMany(unsigned int startIndex, Array< Landmark ^>^ items)

unsigned int

Populates the items array with the items in the collection starting at the specified index. Returns the number of items put into the array.

GetView [C++]

GetView()

IVectorView<Landmark>

Returns an immutable view of the collection.

IndexOf [C++]

IndexOf( Landmark ^ item, unsigned int index)

bool

Populates index with the index of the specified item in the collection. Returns false if the item is not found in the collection.

IndexOf [C#,VB]

IndexOf( Landmark item)

int

Returns the index of the specified item in the collection. Returns -1 if the item is not found.

Insert [C#,VB]

Insert(int index, Landmark item)

None

Inserts the given item into the collection at the specified index.

InsertAt [C++]

InsertAt(unsigned int index, Landmark ^ item)

None

Inserts the given item into the collection at the specified index.

Remove [C#,VB]

Remove( Landmark item)

bool

Removes the first occurrence of the specified item from the collection. Returns true if the item was found and removed, or false if it was not.

RemoveAt [C++]

RemoveAt(unsigned int index)

None

Removes the item at the specified index from the collection.

RemoveAt [C#,VB]

RemoveAt(int index)

None

Removes the item at the specified index from the collection.

RemoveAtEnd [C++]

RemoveAtEnd()

None

Removes the last item in the collection.

ReplaceAll [C++]

ReplaceAll(Array< Landmark ^>^ items)

None

Initially clears the collection, and then inserts the elements in the given array as new collection items.

SetAt [C++]

SetAt(unsigned int index, Landmark ^ item)

None

Sets the item at the specified index in the collection to the given item.

Properties

Name Type Description

Count [C#,VB]

int

Gets the number of items in the collection.

IsReadOnly [C#,VB]

bool

Gets a bool indicating whether the collection is read-only.

Item [C#,VB]

int

Gets or sets the item at the specified index.

Size [C++]

unsigned int

Gets the number of items in the collection.

Show:
© 2015 Microsoft