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