[This is preliminary documentation and is subject to change.]
Returns the collection of immediate child objects of the specified object, by processing the logical tree.
Namespace: Tools.WindowsT.WPFAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static IEnumerable<DependencyObject> LogicalChildren( this DependencyObject obj ) |
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Function LogicalChildren ( _ obj As DependencyObject _ ) As IEnumerable(Of DependencyObject) |
| Visual C++ |
|---|
[ExtensionAttribute] public: static IEnumerable<DependencyObject^>^ LogicalChildren( DependencyObject^ obj ) |
| F# |
|---|
static member LogicalChildren : obj:DependencyObject -> IEnumerable<DependencyObject> |
| JScript |
|---|
public static function LogicalChildren( obj : DependencyObject ) : IEnumerable<DependencyObject> |
Parameters
- obj
- Type: System.Windows..::..DependencyObject
The object from which to start processing the logical tree. This is expected to be either a FrameworkElement or FrameworkContentElement.
Return Value
The enumerable collection of immediate child objects from the logical tree of the specified object.Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | obj is null |
See Also
Version History
1.5.3
- This function is new in version 1.5.3