| SceneHelperContains Method |
Determines whether whether a scene node contains another scene node in its subtree.
Namespace: DigitalRune.Graphics.SceneGraphAssembly: 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
)
<ExtensionAttribute>
Public Shared Function Contains (
containingNode As SceneNode,
containedNode As SceneNode
) As Boolean
public:
[ExtensionAttribute]
static bool Contains(
SceneNode^ containingNode,
SceneNode^ containedNode
)
[<ExtensionAttribute>]
static member Contains :
containingNode : SceneNode *
containedNode : SceneNode -> bool
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 See Also