SnapToGridRule.RoundToGrid(Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
static double RoundToGrid(double position, double gridSize);
public static double RoundToGrid (double position, double gridSize);
static member RoundToGrid : double * double -> double
Public Shared Function RoundToGrid (position As Double, gridSize As Double) As Double
Parameters
- position
- Double
- gridSize
- Double