Skip to main content

IModel.FindChildrenByClassDisplayName Method

Namespace: NextDesign.Core

Description

Searches for instances of a class with the specified display name among instances that are owned by this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of instances of a class with the specified display name among instances that are owned by this instance.
If no corresponding instances exist, returns an empty collection.

Arguments

NameTypeDescription
classDisplayNamestringDisplay name of the class
If null or an empty string is specified, the return value of this method will be an empty collection.
recursiveboolWhether to search for ownership recursively
The default value is False.
If False is specified, the corresponding element will be searched from the instances directly owned by this instance.
If True is specified, the corresponding element will be searched from the instances whose ownership relationships are recursively searched starting from this instance.

Return value

  • IModelCollection