Description

The feature Type property

Property type

A Variant value.  

Syntax

object.Type([Selector])

The Type Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McRegions.
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 mcFeaturesType type of the indicated feature from the collection is returned as a scalar long value.

If the Selector argument is a value of negative one (-1), then a type indicator for the entire feature collection is returned as a scalar long value. If there are multiple features in the collection, mcftMultipleRegions, mcftMultipleLines or mcftMultiplePoints. Otherwise the type is the same as for a single feature (as above).

If the Selector argument is missing or any negative value other than minus 1, then the Type property is exposed or set as an array of 'long' mcFeaturesType feature flags 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 giving the mcFeaturesType for each positive index. Index values greater or equal to the Count property are an error.

Remarks

Type is a read-only property. The feature Type is set automatically every time an initialization function is called (e.g. SetFeaturePoints, McRegions.SetEllipse, McRegions.SetBox, etcetera). It can also change when a feature is modified and its original type cannot express its new shape (e.g. When a type mcftEllipse region is clipped, its type changes to mcftOutline).

Exceptions

Index values must be less than the Count property.