Class CommonExtensions
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Diagrams
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public static class CommonExtensions
Methods
ClearIfNoBindingAndSet(RadObject, RadProperty)
Clears if set.
Declaration
public static bool ClearIfNoBindingAndSet(this RadObject dependencyObject, RadProperty dependencyProperty)
Parameters
RadObject
dependencyObject
The dependency object. |
RadProperty
dependencyProperty
The dependency property. |
Returns
System.Boolean
|
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
IContainerShape
container
The container. |
IDiagramItem
item
The item to test for. |
Returns
System.Boolean
|
GetItemsRecursively(IContainerShape)
Returns the full hierarchy of items contained in the container.
Declaration
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IContainerShape container)
Parameters
IContainerShape
container
The container. |
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
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
IShape
item1
A diagram item. |
IShape
item2
Another diagram item. |
Returns
RadDiagramContainerShape
|
HasSelectedChild(IContainerShape)
Determines whether a container has a selected child.
Declaration
public static bool HasSelectedChild(this IContainerShape container)
Parameters
IContainerShape
container
The container. |
Returns
System.Boolean
|
SetLayout(FrameworkElement, Rect)
Sets the location in the element in Canvas.
Declaration
public static void SetLayout(this FrameworkElement element, Rect rect)
Parameters
FrameworkElement
element
The element. |
Rect
rect
The rectangle. |
SetLocation(FrameworkElement, Double, Double)
Sets the location in the element in Canvas.
Declaration
public static void SetLocation(this FrameworkElement element, double x, double y)
Parameters
FrameworkElement
element
The element. |
System.Double
x
The x. |
System.Double
y
The y. |
SetLocation(FrameworkElement, Point)
Sets the location in the element in Canvas.
Declaration
public static void SetLocation(this FrameworkElement element, Point point)
Parameters
FrameworkElement
element
The element. |
System.Drawing.Point
point
The point. |