Click or drag to resize

XlsObject FindParent Method (Type, Boolean)

This method is used to find parent with specific type.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
protected Object FindParent(
	Type parentType,
	bool bSubTypes
)

Parameters

parentType
Type: System Type
Parent type to locate.
bSubTypes
Type: System Boolean
Indicates whether to search subtypes.

Return Value

Type: Object
The found parent or NULL if parent was not found.
Exceptions
Exception Condition
ArgumentException When there is cycle in object tree.
See Also