CommonExtensions Class
Click or drag to resize
CommonExtensions Class
A collection of generic extensions used across the codebase.
Inheritance Hierarchy

Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core (in Telerik.Windows.Diagrams.Core.dll) Version: 2018.2.515.40 (2018.2.515.40)
public static class CommonExtensions

The CommonExtensions type exposes the following members.

Public methodStatic memberAddRangeT
Adds the given range of items to the current collection.
Public methodStatic memberClearIfSet
Clears the property if a value has been set.
Public methodStatic memberClone(IEnumerableDouble)
Clones the list of doubles and returns a DoubleCollection.
Public methodStatic memberCloneT(IEnumerableT)
Clones the list.
Public methodStatic memberContainsAnyT
Checks for the occurrence of the given items in the collection.
Public methodStatic memberEnsureListCountT
Ensures the list has exactly the amount of items specified.
Public methodStatic memberEnsureListCountAtLeastT
Ensures that the list contains at least the amount of specified items. If not, the given factory function will be used to add additional items till the expect count is reached.
Public methodStatic memberForEachT
Executes the action for each item in the collection.
Public methodStatic memberGetActualBounds
Gets the ActualBounds if the given item is an IShape, otherwise the IDiagramItem's Bounds will be returned.
Public methodStatic memberGetEnclosingBounds
Gets the enclosing bounds of the list of diagram items.
Public methodStatic memberIsLocalValueSet Obsolete.
Determines whether the specified dependency property local value is set.
Public methodStatic memberRemoveLastT
Removes the last item in the list.
Public methodStatic memberSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
See Also