Description

Copies selected features into a new McFeatures interface.

Return Type

A Variant value.  

A newly created McFeatures-derived interface (McPoints, McLines or McRegions) containing the selected features.

Syntax

object.GetFeatures ([varSelector])

The GetFeatures Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McPoints.
varSelectorOptional. A Variant value.

Remarks

This method creates a new McFeatures instance, which will have the same parent McImage (if any) that this one has. To extract features into an McFeature associated with another McImage, you would create the target McFeatures and then use CopyFrom to copy in the desired features to that instance.

The newly created McFeatures will have the same OptionFlags, calibration and FeatureStatusFlags properties as the source. However, the new features will have new Identifier numbers. And any existing DisplayOverlays collection is not copied, so you must set this up if you want the new features to be displayed.