Method Snap
- Namespace
- ReportWright.Design
- Assembly
- ReportWright.Design.dll
Snap(ItemBounds, IEnumerable<ItemBounds>, int)
Snaps a moving box against the others.
public static SmartGuideResult Snap(ItemBounds moving, IEnumerable<ItemBounds> others, int distance = 58)
Parameters
movingItemBoundsThe dragged box, before snapping.
othersIEnumerable<ItemBounds>The other items' bounds, in the same coordinate space.
distanceintThe capture distance in twips.
Returns
- SmartGuideResult
The snapped bounds and the guides.