Interface ISnappingService
The service handling the snapping of diagram items.
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public interface ISnappingService
Remarks
Note that this service can be customized and plugged into the Service
Methods
ClearSnap()
Clears after the snap action.
Declaration
void ClearSnap()
InitializeSnap(IEnumerable<IShape>, IDiagramItem, Boolean, Boolean, Point)
Initializes the snap action.
Declaration
void InitializeSnap(IEnumerable<IShape> staticItems, IDiagramItem mainItem, bool isSnapToItemsEnabled, bool isSnapToGridEnabled, Point initialPosition)
Parameters
System. The static items - the items that you don't drag at the moment. |
IDiagram The main item - the item that drag started from. |
System. The is snap to items enabled. |
System. The is snap to grid enabled. |
System. The initial position. |
SetSnappingEngine(SnappingEngine)
Changes the snapping engine.
Declaration
void SetSnappingEngine(SnappingEngine snappingEngine)
Parameters
Snapping
|
SnapItems(IEnumerable<IDiagramItem>, Point)
Snaps the new dragging position.
Declaration
Point SnapItems(IEnumerable<IDiagramItem> selectedItems, Point newPosition)
Parameters
System. The selected items. |
System. The new position. |
Returns
System.
|
SnapPoint(Point)
Snaps point.
Declaration
Point SnapPoint(Point point)
Parameters
System. The point to snap. |
Returns
System. The snapped point. |
Events
SnappingLinesCalculated
Occurs when snapping lines have been calculated.
Declaration
event EventHandler<SnappingLinesCalculatedEventArgs> SnappingLinesCalculated
Event Type
System.
|