ExtensionMethods
Represents extension methods.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Utilities
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public static class ExtensionMethods
Inheritance: objectExtensionMethods
Methods
Determines whether given rectangle is contained by the current.
public static bool Contains(this Rect rect, Rect other)
The current rectangle.
otherRectThe other.
Returns:True if is contained.
Gets the bounds relative to the current framework element.
public static Rect? GetBoundsRelativeTo(this FrameworkElement element, UIElement otherElement)
The element.
otherElementUIElementThe other element.
Returns:Rect?
Rectangle that represents the bounds.
Determines whether given rectangle intersects with the current.
public static bool IntersectsWith(this Rect rect, Rect other)
The current rectangle.
otherRectThe other.
Returns:True if intersects.
Determines whether the element is ancestor of the current UI element.
public static bool IsAncestorOf(this UIElement target, DependencyObject element)
The target.
elementDependencyObjectThe element.
Returns:True if is ancestor.
Transforms the specified value using current general transform.
public static Size Transform(this GeneralTransform generalTransform, Size value)
The general transform.
valueSizeThe value.
Returns:Size
The transformed value.