New to Telerik UI for WinFormsStart a free 30-day trial

Represents extension methods.

Definition

Namespace:Telerik.WinForms.Controls.Spreadsheet.Utilities

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public static class ExtensionMethodsSpreadsheet

Inheritance: objectExtensionMethodsSpreadsheet

Methods

Determines whether given rectangle is contained by the current.

C#
public static bool Contains(this Rect rect, Rect other)
Parameters:rectRect

The current rectangle.

otherRect

The other.

Returns:

bool

True if is contained.

Gets the bounds relative to the current framework element.

C#
public static Rect? GetBoundsRelativeTo(this FrameworkElement element, UIElement otherElement)
Parameters:elementFrameworkElement

The element.

otherElementUIElement

The other element.

Returns:

Rect?

Rectangle that represents the bounds.

Determines whether given rectangle intersects with the current.

C#
public static bool IntersectsWith(this Rect rect, Rect other)
Parameters:rectRect

The current rectangle.

otherRect

The other.

Returns:

bool

True if intersects.

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

C#
public static bool IsAncestorOf(this UIElement target, DependencyObject element)
Parameters:targetUIElement

The target.

elementDependencyObject

The element.

Returns:

bool

True if is ancestor.

Transforms the specified value using current general transform.

C#
public static double Transform(this GeneralTransform generalTransform, double value)
Parameters:generalTransformGeneralTransform

The general transform.

valuedouble

The value.

Returns:

double

The transformed value.

Transforms the specified value using current general transform.

C#
public static Size Transform(this GeneralTransform generalTransform, Size value)
Parameters:generalTransformGeneralTransform

The general transform.

valueSize

The value.

Returns:

Size

The transformed value.