Description

Per feature source flags

Property type

A Variant value.  

Syntax

object.SourceFlags([Selector], [Mask]) [= value]

The SourceFlags Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McLines.
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 SourceFlags of the indicated feature from the collection is exposed or set as a scalar Long value.

If the Selector argument is a value of negative one (-1), then SourceFlags of all features from the collection are exposed or set as a scalar Long value. The property will be the OR'ed SourceFlags flags of all features in the collection.

If the Selector argument is missing or any negative value other than minus 1, then the Selected property is exposed or set as an array of Long 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, the SourceFlags will be exposed or set as an array of 'Long' values equal to the length of the number of non-negative elements in the Selector array. Index values greater or equal to the Count property are illegal.

MaskOptional. A Long value.

A mask for the flags being set or accessed. Default value is -1 (all bits are exposed or set).

valueA Variant value.

Remarks

The SourceFlags property is used by some measurements that expose an McFeatures to indicate the source of each computed feature. If the stored flags are of no interest to the user, this property may be used for storage of a single Long value.

The property is exposed as a Long VARIANT. Depending on the Selector argument, the returned VARIANT may be a scalar 'Long' value, or it may be an array of such values. The property is exposed as an array if the Selector argument is an array or if it is a negative scalar value other than -1.