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

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public static class CommonExtensions

Inheritance: objectCommonExtensions

Methods

Clears if set.

C#
public static bool ClearIfNoBindingAndSet(this DependencyObject dependencyObject, DependencyProperty dependencyProperty)
Parameters:dependencyObjectDependencyObject

The dependency object.

dependencyPropertyDependencyProperty

The dependency property.

Returns:

bool

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

C#
public static bool Contains(this IContainerShape container, IDiagramItem item)
Parameters:containerIContainerShape

The container.

itemIDiagramItem

The item to test for.

Returns:

bool

Returns the full hierarchy of items contained in the container.

C#
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IContainerShape container)
Parameters:containerIContainerShape

The container.

Returns:

IEnumerable<IDiagramItem>

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

C#
public static RadDiagramContainerShape GetSupremumContainer(this IShape item1, IShape item2)
Parameters:item1IShape

A diagram item.

item2IShape

Another diagram item.

Returns:

RadDiagramContainerShape

Determines whether a container has a selected child.

C#
public static bool HasSelectedChild(this IContainerShape container)
Parameters:containerIContainerShape

The container.

Returns:

bool

Sets the location in the element in Canvas.

C#
public static void SetLayout(this FrameworkElement element, Rect rect)
Parameters:elementFrameworkElement

The element.

rectRect

The rectangle.

Sets the location in the element in Canvas.

C#
public static void SetLocation(this UIElement element, double x, double y)
Parameters:elementUIElement

The element.

xdouble

The x.

ydouble

The y.

Sets the location in the element in Canvas.

C#
public static void SetLocation(this UIElement element, Point point)
Parameters:elementUIElement

The element.

pointPoint

The point.