Class LogicalTreeUtility
Represents a class which has methods to get the collection of objects.
Inheritance
System.Object
LogicalTreeUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.UI.Xaml.Spreadsheet.Helpers
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public static class LogicalTreeUtility
Methods
GetChildren(DependencyObject, Boolean)
Returns the collection of immediate child objects of the specified object by processing the logical tree.
Declaration
public static IEnumerable GetChildren(DependencyObject obj, bool allChildrenInHierachy)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The object from which to start processing the logical tree. |
System.Boolean | allChildrenInHierachy | True or False. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerable | The enumerable collection of immediate child objects from the logical tree of the specified object. |
GetChildren<TReturnType>(DependencyObject, Boolean)
Returns the child object from the collection based on the return type.
Declaration
public static IEnumerable<TReturnType> GetChildren<TReturnType>(DependencyObject obj, bool allChildrenInHierachy)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The object from which to start processing the logical tree. |
System.Boolean | allChildrenInHierachy | True or False. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TReturnType> | The enumerable collection of immediate child objects based on the return type. |
Type Parameters
Name | Description |
---|---|
TReturnType | Return type of the object. |