Class
ExtensionMethods

Represents extension methods.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Utilities

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public static class ExtensionMethods

Inheritance: objectExtensionMethods

Methods

Contains(Rect, Rect)

Determines whether given rectangle is contained by the current.

Declaration

cs-api-definition
public static bool Contains(this Rect rect, Rect other)

Parameters

rect

Rect

The current rectangle.

other

Rect

The other.

Returns

bool

True if is contained.

GetBoundsRelativeTo(FrameworkElement, UIElement)

Gets the bounds relative to the current framework element.

Declaration

cs-api-definition
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

cs-api-definition
public static bool IntersectsWith(this Rect rect, Rect other)

Parameters

rect

Rect

The current rectangle.

other

Rect

The other.

Returns

bool

True if intersects.

IsAncestorOf(UIElement, DependencyObject)

Determines whether the element is ancestor of the current UI element.

Declaration

cs-api-definition
public static bool IsAncestorOf(this UIElement target, DependencyObject element)

Parameters

target

UIElement

The target.

element

DependencyObject

The element.

Returns

bool

True if is ancestor.

Transform(GeneralTransform, Size)

Transforms the specified value using current general transform.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public static double Transform(this GeneralTransform generalTransform, double value)

Parameters

generalTransform

GeneralTransform

The general transform.

value

double

The value.

Returns

double

The transformed value.