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: 2018.2.620.40 (2018.2.620.40)
public static bool IsAncestorOf(
	this UIElement target,
	DependencyObject element


Type: System.WindowsUIElement
The target.
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