ArcFM Server 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
 
<ExtensionAttribute()>
Public Shared Function IsDescendentOfElement( _
   ByVal child As DependencyObject, _
   ByVal name As String, _
   Optional ByVal withinContainer As DependencyObject _
) As Boolean
'Usage
 
Dim child As DependencyObject
Dim name As String
Dim withinContainer As DependencyObject
Dim value As Boolean
 
value = TreeHelper.IsDescendentOfElement(child, name, withinContainer)
[Extension()]
public static bool IsDescendentOfElement( 
   DependencyObject child,
   string name,
   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