Click or drag to resize

imbGraphExtensionsgetParentOfLevel Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the parent of target element level or root if reached

Namespace:  imbSCI.Data
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static IObjectWithParent getParentOfLevel(
	this IObjectWithParent source,
	reportElementLevel level,
	bool getLastParent = false,
	bool nullForNotFound = true,
	int limit = 100
)
Request Example View Source

Parameters

source
Type: imbSCI.Data.interfacesIObjectWithParent
The source.
level
Type: imbSCI.Data.enumsreportElementLevel
The level.
getLastParent (Optional)
Type: SystemBoolean
if set to true [get last parent].
nullForNotFound (Optional)
Type: SystemBoolean
if set to true [null for not found].
limit (Optional)
Type: SystemInt32
The limit.

Return Value

Type: IObjectWithParent

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObjectWithParent. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also