CommonExtensions
Class
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)
The dependency object.
dependencyPropertyDependencyPropertyThe dependency property.
Returns:Returns whether the container contains in its hierarchy the given item.
C#
public static bool Contains(this IContainerShape container, IDiagramItem item)
The container.
itemIDiagramItemThe item to test for.
Returns:Returns the full hierarchy of items contained in the container.
C#
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IContainerShape container)
The container.
Returns:Determines whether a container has a selected child.
C#
public static bool HasSelectedChild(this IContainerShape container)
The container.
Returns:Sets the location in the element in Canvas.
C#
public static void SetLayout(this FrameworkElement element, Rect rect)
The element.
rectRectThe rectangle.
Sets the location in the element in Canvas.
C#
public static void SetLocation(this UIElement element, Point point)
The element.
pointPointThe point.