Description

The feature Identifier property

Property type

A Variant value.  

Syntax

object.Identifier([Selector])

The Identifier Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McFeatures.
SelectorOptional. A Variant value.

An empty variant, a single negative value, a single index value, or an array of zero or more index values (negative index values are legal but will be ignored).

If the Selector argument is a non-negative scalar value, then the Identifier of the indicated feature from the collection is returned as a scalar long value.

If the Selector argument is missing or any negative value, then the property is exposed as an array of 'long' Identifier values, one for each feature. The number of elements in the array will be equal to the Count property.

If Selector is an array, then zero or positive values are treated as indices into the features collection, negative values are legal but ignored. In this case, an array of long values is returned, giving the Identifier for each positive index.

Index values greater or equal to the Count property return an Identifier of Zero.

Remarks

The feature Identifier property is a unique number associated with each feature. It is set automatically every time an feature-creation function is called (e.g. SetFeaturePoints, SetBox...). It will generally (see Notes for exceptions) remain unchanged for any operation that merely re-orders, removes or adds new features. It will often change for any operation that actually changes features.

Identifier is a read-only property

For McRegions with the mcofKeepRegionsAsUnion bit set in the OptionFlags property, the Identifier becomes invalid for most any operation that changes the regions. The exception is simple removal of subregions; it this case, the Identifier associated with each remaining connected region is constant.