IModel.FindOwnerByClass method
Namespace: NextDesign.Core
Description
Gets the first owner instance of the specified class that holds this instance.
Returns the first instance of the specified class that is found, following the instances that own this instance in the parent direction.
Returns null if the corresponding instance is not found even after searching up to the highest parent element.
In addition, null is returned if the class specified in the class name is not found.
Also, if there are multiple matching classes when doing a fuzzy match, the instance of the first found class 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, the return value of this method will be null. |
Whether to treat the | fuzzy | bool |