skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class CommonExtensions

Inheritance
System.Object
CommonExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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.

Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.