ArcFM Solution Developer Guide
IsDescendentOfElement Method


A System.Windows.DependencyObject item in the visual tree.
The name of the System.Windows.FrameworkElement parent in the visual tree.
Optional element that will contain the search to not traverse to the parent of this container.
Determines if the given element is a child of a System.Windows.FrameworkElement with the given name.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function IsDescendentOfElement( _
   ByVal child As System.Windows.DependencyObject, _
   ByVal name As System.String, _
   Optional ByVal withinContainer As System.Windows.DependencyObject _
) As System.Boolean
'Usage
 
Dim child As System.Windows.DependencyObject
Dim name As System.String
Dim withinContainer As System.Windows.DependencyObject
Dim value As System.Boolean
 
value = TreeHelper.IsDescendentOfElement(child, name, withinContainer)
[System.Runtime.CompilerServices.Extension()]
public static System.bool IsDescendentOfElement( 
   System.Windows.DependencyObject child,
   System.string name,
   System.Windows.DependencyObject withinContainer
)

Parameters

child
A System.Windows.DependencyObject item in the visual tree.
name
The name of the System.Windows.FrameworkElement parent in the visual tree.
withinContainer
Optional element that will contain the search to not traverse to the parent of this container.

Return Value

True if the given element is a child of an element of the given name in the optional scope, else false.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

TreeHelper Class
TreeHelper Members

 

 


Send Comment