Description
Select the objects enumerated by _NewEnum.
-
Return Type
-
None
-
Syntax
-
object.SetEnumFilter [EnumWhat], [ClassName], [TemplateID]
The SetEnumFilter Method syntax has these parts: |
| object | An expression evaluating to an object of type McGraphOverlay. | | EnumWhat | Optional. A mcGraphOverlayEnumWhat enumeration, as described in settings. Filter the resulting set based on object Category.
| | ClassName | Optional. A String value. Limit the enumeration to instances of this class.
| | TemplateID | Optional. A Long value. Limit the enumeration to objects created using this template.
| Settings The settings for EnumWhat are:
 | mcgewSelected | 1 |
Only return selected objects
|
 | mcgewAny | 2 |
Return all non-template objects (selected or not)
|
 | mcgewTemplate | 3 |
Return Template objects only
|
 | mcgewMasterOrLabel | 0 |
Return either Master or Label flag
|
 | mcgewMaster | 16 |
Only return master objects (no labels) flag.
|
 | mcgewLabel | 32 |
Only return label objects attached to master objects flag.
|
 | mcgewEnumWhatMask | 15 |
Mask for the group of objects to enumerate from.
|
Remarks
The number of objects returned by the Count property is also affected by SetEnumFilter. All 3 conditions are combined to produce the final filter.
After any For Each enumertion (a call to get the _NewEnum property), the SetEnumFilter is reset to enumerate all objects. It is not reset by accessing the Count property. Thus, you must call SetEnumFilter anew before each For Each enumeration.
|