Export (0) Print
Expand All

MapShapeCollection class

Bing

Provides access to a collection of map shapes, such as MapPolyline and MapPolygon.

Constructor

Definition Description

MapShapeCollection()

Initializes a new instance of the MapShapeCollection class.

Methods

Name Definition Return Type Description

Add [C#,VB]

Add( MapShape item)

None

Adds the given item to the end of the collection.

Append [C++]

Append( MapShape ^ 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( MapShape 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( MapShape [] array, int arrayIndex)

None

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

First [C++]

First()

IIterator<MapShape>

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

GetAt [C++]

GetAt(unsigned int index)

MapShape

Returns the item in the collection at the specified index.

GetMany [C++]

GetMany(unsigned int startIndex, Array< MapShape ^>^ 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<MapShape>

Returns an immutable view of the collection.

IndexOf [C++]

IndexOf( MapShape ^ 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( MapShape 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, MapShape item)

None

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

InsertAt [C++]

InsertAt(unsigned int index, MapShape ^ item)

None

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

Remove [C#,VB]

Remove( MapShape 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< MapShape ^>^ 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, MapShape ^ 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:
© 2014 Microsoft