New to Telerik UI for WinFormsStart a free 30-day trial

Encapsulates snapping calculations.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public class SnappingEngine

Inheritance: objectSnappingEngine

Constructors

C#
public SnappingEngine()

Methods

Gets the horizontal axis matching between two items.

C#
protected virtual MatchingInfo GetHorizontalMatchingOverride(SnappingItem itemToSnap, SnappingItem staticItem)
Parameters:itemToSnapSnappingItemstaticItemSnappingItemReturns:

MatchingInfo

Gets the vertical axis matching between two items.

C#
protected virtual MatchingInfo GetVerticalMatchingOverride(SnappingItem itemToSnap, SnappingItem staticItem)
Parameters:itemToSnapSnappingItemstaticItemSnappingItemReturns:

MatchingInfo