Description

CopyFrom a source McFeatures into this one, replacing all existing features with those from the source McFeatures.

Return Type

None  

Syntax

object.CopyFrom varMcFeaturesSrc

The CopyFrom Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McLines.
varMcFeaturesSrcRequired. A Variant value.

The McFeatures to copy into this one

Remarks

CopyFrom is an “assignment” operation. Any existing features are removed, then a copy is made of all features from an assigning McFeatures source. The source McFeatures is not affected.

The OptionFlags, calibration and FeatureStatusFlags properties are also copied from the source. However, the copied features will have new Identifier numbers. And any existing DisplayOverlays collection is not disturbed, so the new features will be automatically displayed, if the collection is set up to do that.

Exceptions

The source McFeatures must be of the same type (McPoints, McLines or McRegions) as this one.