ArcFM Desktop 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
 
<IteratorStateMachineAttribute(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__5)>
<ExtensionAttribute()>
Public Shared Function GetChildObjects( _
   ByVal parent As DependencyObject, _
   Optional ByVal forceUsingTheVisualTreeHelper As Boolean _
) As IEnumerable(Of DependencyObject)
'Usage
 
Dim parent As DependencyObject
Dim forceUsingTheVisualTreeHelper As Boolean
Dim value As IEnumerable(Of DependencyObject)
 
value = TreeHelper.GetChildObjects(parent, forceUsingTheVisualTreeHelper)
[IteratorStateMachine(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__5)]
[Extension()]
public static IEnumerable<DependencyObject> GetChildObjects( 
   DependencyObject parent,
   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