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

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public static class CommonExtensions

Inheritance: objectCommonExtensions

Methods

Clears if set.

C#
public static bool ClearIfNoBindingAndSet(this RadObject dependencyObject, RadProperty dependencyProperty)
Parameters:dependencyObjectRadObject

The dependency object.

dependencyPropertyRadProperty

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 FrameworkElement element, double x, double y)
Parameters:elementFrameworkElement

The element.

xdouble

The x.

ydouble

The y.

Sets the location in the element in Canvas.

C#
public static void SetLocation(this FrameworkElement element, Point point)
Parameters:elementFrameworkElement

The element.

pointPoint

The point.