Click or drag to resize
DigitalRuneSceneHelperContains Method
Determines whether whether a scene node contains another scene node in its subtree.

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static bool Contains(
	this SceneNode containingNode,
	SceneNode containedNode
)

Parameters

containingNode
Type: DigitalRune.Graphics.SceneGraphSceneNode
The containing node.
containedNode
Type: DigitalRune.Graphics.SceneGraphSceneNode
The contained node.

Return Value

Type: Boolean
if the subtree where the root is containingNode contains containedNode (in other words, containingNode is an ancestor of containedNode or both nodes are equal); otherwise, .

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SceneNode. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptioncontainingNode is .
See Also