Table of Contents

Method Snap

Namespace
ReportWright.Design
Assembly
ReportWright.Design.dll

Snap(int, int)

Snaps a coordinate to the nearest multiple of a step; a step of zero or less snaps nothing.

public static int Snap(int twips, int step)

Parameters

twips int

The coordinate.

step int

The step, in twips.

Returns

int

The snapped coordinate.