ArcFM Solution Developer Guide
GetChildObjects Method


The item to be processed.
Sometimes it's better to search in the VisualTree (e.g. in tests)
This method is an alternative to WPF's System.Windows.Media.VisualTreeHelper.GetChild(System.Windows.DependencyObject,System.Int32) method, which also supports content elements. Keep in mind that for content elements, this method falls back to the logical tree of the element.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.IteratorStateMachineAttribute(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__5)>
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function GetChildObjects( _
   ByVal parent As System.Windows.DependencyObject, _
   Optional ByVal forceUsingTheVisualTreeHelper As System.Boolean _
) As System.Collections.Generic.IEnumerable(Of DependencyObject)
'Usage
 
Dim parent As System.Windows.DependencyObject
Dim forceUsingTheVisualTreeHelper As System.Boolean
Dim value As System.Collections.Generic.IEnumerable(Of DependencyObject)
 
value = TreeHelper.GetChildObjects(parent, forceUsingTheVisualTreeHelper)
[System.Runtime.CompilerServices.IteratorStateMachine(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__5)]
[System.Runtime.CompilerServices.Extension()]
public static System.Collections.Generic.IEnumerable<DependencyObject> GetChildObjects( 
   System.Windows.DependencyObject parent,
   System.bool forceUsingTheVisualTreeHelper
)

Parameters

parent
The item to be processed.
forceUsingTheVisualTreeHelper
Sometimes it's better to search in the VisualTree (e.g. in tests)

Return Value

The submitted item's child elements, if available.
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