CollectionExtended
T
FindParent Method (Type, Boolean)
|
Method used to find parent within a specific type.
Namespace:
Spire.Xls.Core.Spreadsheet.Collections
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
protected Object FindParent(
Type parentType,
bool bCheckSubclasses
)
Protected Function FindParent (
parentType As Type,
bCheckSubclasses As Boolean
) As Object
protected:
Object^ FindParent(
Type^ parentType,
bool bCheckSubclasses
)
member FindParent :
parentType : Type *
bCheckSubclasses : bool -> Object
Parameters
-
parentType
-
Type:
System
Type
Parent type to search.
-
bCheckSubclasses
-
Type:
System
Boolean
Indicates whether to look into subclasses.
Return Value
Type:
Object
Found parent if was parent was found or NULL otherwise.
Exceptions
Exception
|
Condition
|
ArgumentException
|
When there is cycle in object tree.
|
See Also