LogicalExtensions Class

Summary

Provides extension methods for working with the logical tree.
Namespace
Avalonia.LogicalTree
Base Types
  • object
graph BT Type-->Base0["object"] Type["LogicalExtensions"] class Type type-node

Syntax

public static class LogicalExtensions

Methods

Name Value Summary
FindLogicalAncestorOfType<T>(ILogical, bool) T
Finds first ancestor of given type.
static
FindLogicalDescendantOfType<T>(ILogical, bool) T
Finds first descendant of given type.
static
GetLogicalAncestors(ILogical) IEnumerable<ILogical>
Enumerates the ancestors of an ILogical in the logical tree.
static
GetLogicalChildren(ILogical) IEnumerable<ILogical>
Enumerates the children of an ILogical in the logical tree.
static
GetLogicalDescendants(ILogical) IEnumerable<ILogical>
Enumerates the descendants of an ILogical in the logical tree.
static
GetLogicalParent(ILogical) ILogical
Gets the logical parent of an ILogical.
static
GetLogicalParent<T>(ILogical) T
Gets the logical parent of an ILogical.
static
GetLogicalSiblings(ILogical) IEnumerable<ILogical>
Enumerates the siblings of an ILogical in the logical tree.
static
GetSelfAndLogicalAncestors(ILogical) IEnumerable<ILogical>
Enumerates an ILogical and its ancestors in the logical tree.
static
GetSelfAndLogicalDescendants(ILogical) IEnumerable<ILogical>
Enumerates an ILogical and its descendants in the logical tree.
static
IsLogicalAncestorOf(ILogical, ILogical) bool
Tests whether an ILogical is an ancestor of another logical.
static