ClassGroupExtensions
Extensions on the IGroup interface.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public static class GroupExtensions
Inheritance: objectGroupExtensions
Methods
AddToGroup(IGroup, params IGroupable[])
Adds to group.
Declaration
public static void AddToGroup(this IGroup group, params IGroupable[] items)
Parameters
group
The group.
items
The items.
Contains(IGroup, IDiagramItem)
Returns whether the group contains in its hierarchy the given item.
Declaration
public static bool Contains(this IGroup group, IDiagramItem item)
Parameters
group
The group.
item
The item to test for.
Returns
GetBounds(IGroup)
Gets the bounds of a specific group.
Declaration
public static Rect GetBounds(this IGroup group)
Parameters
group
Returns
Rect
GetGroups(IGroup)
Gets the items.
Declaration
public static IEnumerable<IGroup> GetGroups(this IGroup group)
Parameters
group
The group.
Returns
GetItems(IGroup)
Gets the items.
Declaration
public static IEnumerable<IDiagramItem> GetItems(this IGroup group)
Parameters
group
The group.
Returns
GetItemsRecursively(IGroup)
Gets all the items insider the specific group.
Declaration
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IGroup group)
Parameters
group
Returns
GetSingleItems(IGroup)
Gets all the items inside the specific group.
Declaration
public static IEnumerable<IGroupable> GetSingleItems(this IGroup group)
Parameters
group
The group.
Returns
GetSupremumGroup(IGroupable, IDiagramItem)
Gets the first (lowest in the hierarchy) group which groups both given shapes.
Declaration
public static IGroup GetSupremumGroup(this IGroupable item1, IDiagramItem item2)
Parameters
item1
A diagram item.
item2
Another diagram item.
Returns
RemoveFromGroup(IGroup, params IGroupable[])
Removes from group.
Declaration
public static void RemoveFromGroup(this IGroup group, params IGroupable[] items)
Parameters
group
The group.
items
The items.
SelectRecursivly(IGroup, bool)
Selects the group and all it's children.