IModel.FindChildrenByClass(IPackage,string,bool,bool) Method
Namespace: NextDesign.Core
Description
Searches for instances of the specified class among the instances that are owned by this instance.
The specified class is identified from the package specified by the scope.
This method evaluates IContextOption.PlModelAccessMode.
Returns a collection of instances of the specified class among the instances that are owned by this instance.
If the class specified in the class name is not found, an empty collection is returned.
Also, if no corresponding instances exist, an empty collection is returned.
Arguments
Name | Type | Description |
---|---|---|
scope | IPackage | Scope (Package that is the base of the search range) |
className | string | Class name Specify the name or fully qualified name of the class. If null or an empty string is specified, the return value of this method will be an empty collection. |
recursive | bool | Whether to search ownership relationships recursively The default value is False. If False is specified, the corresponding element will be searched from instances directly owned by this instance. If True is specified, the corresponding element will be searched from instances that are searched recursively for ownership relationships starting from this instance. |
fuzzy | bool | Fuzzy match option Whether to treat the className argument as the name of a class instead of a fully qualified name. If False, it will be evaluated as specifying a class whose fully qualified name matches className. If True, evaluates classes whose class name matches className as specified. The default value is True. |
Return value
- IModelCollection