Class CommonExtensions
Inheritance
Namespace: Telerik.Windows.Controls.Diagrams
Assembly: Telerik.Windows.Controls.Diagrams.dll
Syntax
public static class CommonExtensions : Object
Methods
ClearIfNoBindingAndSet(DependencyObject, DependencyProperty)
Clears if set.
Declaration
public static bool ClearIfNoBindingAndSet(this DependencyObject dependencyObject, DependencyProperty dependencyProperty)
Parameters
System. The dependency object. |
System. The dependency property. |
Returns
System.
|
Contains(IContainerShape, IDiagramItem)
Returns whether the container contains in its hierarchy the given item.
Declaration
public static bool Contains(this IContainerShape container, IDiagramItem item)
Parameters
IContainer The container. |
IDiagram The item to test for. |
Returns
System.
|
GetItemsRecursively(IContainerShape)
Returns the full hierarchy of items contained in the container.
Declaration
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IContainerShape container)
Parameters
IContainer The container. |
Returns
System.
|
GetSupremumContainer(IShape, IShape)
Gets the first (lowest in the hierarchy) group which groups both given shapes.
Declaration
public static RadDiagramContainerShape GetSupremumContainer(this IShape item1, IShape item2)
Parameters
Returns
HasSelectedChild(IContainerShape)
Determines whether a container has a selected child.
Declaration
public static bool HasSelectedChild(this IContainerShape container)
Parameters
IContainer The container. |
Returns
System.
|
SetLayout(FrameworkElement, Rect)
Sets the location in the element in Canvas.
Declaration
public static void SetLayout(this FrameworkElement element, Rect rect)
Parameters
System. The element. |
System. The rectangle. |
SetLocation(UIElement, Double, Double)
Sets the location in the element in Canvas.
Declaration
public static void SetLocation(this UIElement element, double x, double y)
Parameters
System. The element. |
System. The x. |
System. The y. |
SetLocation(UIElement, Point)
Sets the location in the element in Canvas.
Declaration
public static void SetLocation(this UIElement element, Point point)
Parameters
System. The element. |
System. The point. |