Skip to main content

IModel.FindChildrenByClass(IPackage,string,bool,bool) Method

Namespace: NextDesign.Core

Description

This method searches for instances of the specified class among the instances owned by this instance.
The specified class is identified within the package specified in the scope.
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

NameTypeDescription
scopeIPackageScope (the package from which the search range begins)
classNamestringClass name
Specifies the name or fully qualified name of the class.
If null or an empty string is specified, this method returns an empty collection.
recursiveboolWhether to recursively search for ownership
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.
fuzzyboolFuzzy 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 evaluates as specifying a class whose class name matches className.

The default value is True.

Return value

  • IModelCollection