ArcGISMutablePartCollection

Namespace: GameEngine.Geometry
Class: GameEngine/Geometry/ArcGISMutablePartCollection
Since: 1.0.0

Summary

A collection object that can be changed containing parts for a geometry. Each part is represented by an ArcGISMutablePart.

Constructors

ArcGISMutablePartCollection(ArcGISSpatialReference)

Creates a mutable part collection with a specified spatial reference.

Since 1.0.0

Arguments
NameTypeSummary
spatialReference

A spatial reference object, can be null.

Properties

PropertyTypeNullableReadonlySummary
No
Yes

Indicates if the mutable part collection contains no parts.

No
Yes

The number of parts in the collection.

Yes
No

The spatial reference for the mutable part collection.

IsEmpty

bool IsEmpty

Indicates if the mutable part collection contains no parts.

Size

ulong Size

The number of parts in the collection.

SpatialReference

ArcGISSpatialReference SpatialReference

The spatial reference for the mutable part collection.

If the collection does not have a spatial reference null is returned.

Methods

SignatureReturn TypeSummary

AddPart(ArcGISMutablePart)

ulong

Add a new part to the end of the mutable part collection.

GetPart(ulong)

ArcGISMutablePart

Returns a part at the specified index in the collection.

IndexOf(ArcGISMutablePart)

ulong

Retrieves the position of the segment in the mutable part collection. The first segment that is equal to the supplied segment is returned.

InsertPart(ulong, ArcGISMutablePart)

void

Inserts a part into the mutable part collection at the specified part index.

RemoveAll()

void

Remove all parts from the mutable part collection.

RemovePart(ulong)

void

Removes a part from the mutable part collection.

SetPart(ulong, ArcGISMutablePart)

void

Replace a part in the mutable part collection at the specified part index.

AddPart

ulong AddPart(ArcGISMutablePart mutablePart)

Add a new part to the end of the mutable part collection.

Since 1.0.0

Arguments
NameTypeSummary
mutablePart

The part to add.

Returns ulong

the index where the part was added. If an error occurred, then -1 is returned.

GetPart

ArcGISMutablePart GetPart(ulong index)

Returns a part at the specified index in the collection.

Since 1.0.0

Arguments
NameTypeSummary
index

The position in the collection.

Returns ArcGISMutablePart

The part at the specified position in the collection.

IndexOf

ulong IndexOf(ArcGISMutablePart mutablePart)

Retrieves the position of the segment in the mutable part collection. The first segment that is equal to the supplied segment is returned.

Since 1.0.0

Arguments
NameTypeSummary
mutablePart

The part to find.

Returns ulong

The position of the segment in the collection, -1 otherwise.

InsertPart

void InsertPart(ulong index, ArcGISMutablePart mutablePart)

Inserts a part into the mutable part collection at the specified part index.

Since 1.0.0

Arguments
NameTypeSummary
index

Zero-based index of the part.

mutablePart

The part to insert.

Returns void

RemoveAll

void RemoveAll()

Remove all parts from the mutable part collection.

Since 1.0.0

Returns void

RemovePart

void RemovePart(ulong index)

Removes a part from the mutable part collection.

Since 1.0.0

Arguments
NameTypeSummary
index

Zero-based index of the part.

Returns void

SetPart

void SetPart(ulong index, ArcGISMutablePart mutablePart)

Replace a part in the mutable part collection at the specified part index.

Since 1.0.0

Arguments
NameTypeSummary
index

Zero-based index of the part.

mutablePart

Collection of segments representing the part.

Returns void

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.