ISnappingService
Interface
The service handling the snapping of diagram items.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
C#
public interface ISnappingService
Derived Classes:
Methods
Clears after the snap action.
C#
void ClearSnap()
Initializes the snap action.
C#
void InitializeSnap(IEnumerable<IShape> staticItems, IDiagramItem mainItem, bool isSnapToItemsEnabled, bool isSnapToGridEnabled, Point initialPosition)
The static items - the items that you don't drag at the moment.
mainItemIDiagramItemThe main item - the item that drag started from.
isSnapToItemsEnabledboolThe is snap to items enabled.
isSnapToGridEnabledboolThe is snap to grid enabled.
initialPositionPointThe initial position.
Changes the snapping engine.
Snaps the new dragging position.
C#
Point SnapItems(IEnumerable<IDiagramItem> selectedItems, Point newPosition)
The selected items.
newPositionPointThe new position.
Returns:Events
Occurs when snapping lines have been calculated.
C#
event EventHandler<SnappingLinesCalculatedEventArgs> SnappingLinesCalculated