Description

Gets the McGraphObj class name most compabible with a given feature.

Return Type

A String value.  

The ClassName string.

Syntax

object.ClassNameForFeature (lFeatureIndex)

The ClassNameForFeature Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDisplayOverlays.
lFeatureIndexRequired. A Long value.

The index of the feature for which a ClassName is desired. This must be between 0 and McFeatures.Count-1.

Remarks

Given a particular feature index, this method returns the ClassName that should be passed to the McGraphOverlay.Add method to create a compatible McGraphObj. A McGraphObj of this class can be linked to the given feature.

Each feature type has a corresponding McGraphObj class to which it can be linked with the LinkFeatureToGraphObj method:

        McRegions feature of type mcftOutline - McGraphObjPoly
        McRegions feature of type mcftBox - McGraphObjRect
        McRegions feature of type mcftEllipse - McGraphObjEllipse
        McRegions feature of type mcftScanList - McGraphObjPoly
        McLines feature of type mcftLine - McGraphObjLine
        McLines feature of type mcftPolyline - McGraphObjPoly
        McPoints feature of type mcftPoint - McGraphObjPoint

Exceptions

The lFeatureIndex must reference an existing feature.