Skip to main content

IModel.FindChildrenByClass method

Namespace: NextDesign.Core

Description

Finds an instance of the specified class among the instances that own this instance. This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of instances of the specified class of the owned instances. If the class specified in the class name cannot be found, an empty collection will be returned. It also returns an empty collection if the instance doesn't exist.

argument

NameTypeDescription
classNamestringclass name
Specify the name of the class or the fully qualified name.
If null or an empty string is specified, the return value of this method will be an empty collection.
recursiveboolRecursively search for ownership
The default value is False. If False is specified, it is applicable from the instance directly owned by this instance.
If True is specified, it is applicable from the instance that recursively searched for the ownership relationship based on this instance. Search for an element.
fuzzyboolclassName Whether to treat the argument as a class name rather than a fully qualified name.
If False, evaluate as specifying a class whose fully qualified name matches className.
If True, evaluate as specifying a class whose class name matches className.

The default value is True.

Return value

  • IModelCollection