ArcFM Engine Developer Guide
FindChildren<T> Method


The type of the queried items.
The root element that marks the source of the search. If the source is already of the requested type, it will not be included in the result.
Sometimes it's better to search in the VisualTree (e.g. in tests)
Analyzes both visual and logical tree in order to find all elements of a given type that are descendants of the source item.
Syntax
'Declaration
 
<IteratorStateMachineAttribute(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__3`1)>
<ExtensionAttribute()>
Public Shared Function FindChildren(Of T As DependencyObject)( _
   ByVal source As DependencyObject, _
   Optional ByVal forceUsingTheVisualTreeHelper As Boolean _
) As IEnumerable(Of T)
'Usage
 
Dim source As DependencyObject
Dim forceUsingTheVisualTreeHelper As Boolean
Dim value As IEnumerable(Of T)
 
value = TreeHelper.FindChildren(Of T)(source, forceUsingTheVisualTreeHelper)
[IteratorStateMachine(Miner.Desktop.Diagrams.Underground.UI.TreeHelper/d__3`1)]
[Extension()]
public static IEnumerable<T> FindChildren<T>( 
   DependencyObject source,
   bool forceUsingTheVisualTreeHelper
)
where T: DependencyObject

Parameters

source
The root element that marks the source of the search. If the source is already of the requested type, it will not be included in the result.
forceUsingTheVisualTreeHelper
Sometimes it's better to search in the VisualTree (e.g. in tests)

Type Parameters

T
The type of the queried items.

Return Value

All descendants of source that match the requested type.
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