Class
CommonExtensions

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public static class CommonExtensions

Inheritance: objectCommonExtensions

Methods

ClearIfNoBindingAndSet(DependencyObject, DependencyProperty)

Clears if set.

Declaration

cs-api-definition
public static bool ClearIfNoBindingAndSet(this DependencyObject dependencyObject, DependencyProperty dependencyProperty)

Parameters

dependencyObject

DependencyObject

The dependency object.

dependencyProperty

DependencyProperty

The dependency property.

Returns

bool

Contains(IContainerShape, IDiagramItem)

Returns whether the container contains in its hierarchy the given item.

Declaration

cs-api-definition
public static bool Contains(this IContainerShape container, IDiagramItem item)

Parameters

container

IContainerShape

The container.

item

IDiagramItem

The item to test for.

Returns

bool

GetItemsRecursively(IContainerShape)

Returns the full hierarchy of items contained in the container.

Declaration

cs-api-definition
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IContainerShape container)

Parameters

container

IContainerShape

The container.

Returns

IEnumerable<IDiagramItem>

GetSupremumContainer(IShape, IShape)

Gets the first (lowest in the hierarchy) group which groups both given shapes.

Declaration

cs-api-definition
public static RadDiagramContainerShape GetSupremumContainer(this IShape item1, IShape item2)

Parameters

item1

IShape

A diagram item.

item2

IShape

Another diagram item.

Returns

RadDiagramContainerShape

HasSelectedChild(IContainerShape)

Determines whether a container has a selected child.

Declaration

cs-api-definition
public static bool HasSelectedChild(this IContainerShape container)

Parameters

container

IContainerShape

The container.

Returns

bool

SetLayout(FrameworkElement, Rect)

Sets the location in the element in Canvas.

Declaration

cs-api-definition
public static void SetLayout(this FrameworkElement element, Rect rect)

Parameters

element

FrameworkElement

The element.

rect

Rect

The rectangle.

SetLocation(UIElement, Point)

Sets the location in the element in Canvas.

Declaration

cs-api-definition
public static void SetLocation(this UIElement element, Point point)

Parameters

element

UIElement

The element.

point

Point

The point.

SetLocation(UIElement, double, double)

Sets the location in the element in Canvas.

Declaration

cs-api-definition
public static void SetLocation(this UIElement element, double x, double y)

Parameters

element

UIElement

The element.

x

double

The x.

y

double

The y.