IModel.FindChildrenByClass(string,bool,bool) Method
Namespace: NextDesign.Core
Description
This method searches for instances of the specified class among the instances owned by this instance.
This method evaluates IContextOption.PlModelAccessMode.
It returns a collection of instances of the specified class among the instances owned by this instance.
If the class specified in the class name is not found, an empty collection is returned.
Also, if no matching instances exist, an empty collection is returned.
Argument
| Name | Type | Description |
|---|---|---|
| className | string | Class Name Specify the name or fully qualified name of the class. If null or an empty string is specified, this method returns an empty collection. |
| recursive | bool | Whether to recursively search for ownership relationships The default value is False. If False is specified, the matching element is searched from instances directly owned by this instance. If True is specified, the matching element is searched from instances obtained by recursively searching for ownership relationships starting from this instance. |
| fuzzy | bool | Fuzzy matching option Whether to treat the className argument as the name of the class rather than its fully qualified name. If False, it is evaluated as specifying a class whose fully qualified name matches className. If True, it is evaluated as specifying a class whose class name matches className. The default value is True. |
Return value
- IModelCollection