Click or drag to resize
ExtensionMethodsIsAncestorOf Method
Determines whether the element is ancestor of the current UI element.

Namespace: Telerik.Windows.Controls.Spreadsheet.Utilities
Assembly: Telerik.Windows.Controls.Spreadsheet (in Telerik.Windows.Controls.Spreadsheet.dll) Version: 2017.3.1018.40 (2017.3.1018.40)
Syntax
public static bool IsAncestorOf(
	this UIElement target,
	DependencyObject element
)

Parameters

target
Type: System.WindowsUIElement
The target.
element
Type: System.WindowsDependencyObject
The element.

Return Value

Type: Boolean
True if is ancestor.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UIElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also