IModel.FindChildrenByClass(string,bool,bool) Method
Namespace: NextDesign.Core
Description
Searches for instances of the specified class among the instances that are owned by this instance.
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 |
---|---|---|
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 obtained by recursively searching ownership relationships starting from this instance. |
fuzzy | bool | Fuzzy match option Whether to treat the className argument as the name of a class rather than a fully qualified name. If False, it will be evaluated as specifying a class whose fully qualified name matches className. If True, it will be evaluated as specifying a class whose class name matches className. The default value is True. |
Return value
- IModelCollection