Table of Contents

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

moving ItemBounds

The dragged box, before snapping.

others IEnumerable<ItemBounds>

The other items' bounds, in the same coordinate space.

distance int

The capture distance in twips.

Returns

SmartGuideResult

The snapped bounds and the guides.