Click or drag to resize
ExtensionMethodsGetBoundsRelativeTo Method
Gets the bounds relative to the current framework element.

Namespace: Telerik.Windows.Controls.Spreadsheet.Utilities
Assembly: Telerik.Windows.Controls.Spreadsheet (in Telerik.Windows.Controls.Spreadsheet.dll) Version: 2018.2.515.40 (2018.2.515.40)
Syntax
public static Nullable<Rect> GetBoundsRelativeTo(
	this FrameworkElement element,
	UIElement otherElement
)

Parameters

element
Type: System.WindowsFrameworkElement
The element.
otherElement
Type: System.WindowsUIElement
The other element.

Return Value

Type: NullableRect
Rectangle that represents the bounds.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FrameworkElement. 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