SnapToGridRule.RoundToGrid Method
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Shared Function RoundToGrid ( _
position As Double, _
gridSize As Double _
) As Double
public static double RoundToGrid(
double position,
double gridSize
)
public:
static double RoundToGrid(
double position,
double gridSize
)
static member RoundToGrid :
position:float *
gridSize:float -> float
public static function RoundToGrid(
position : double,
gridSize : double
) : double
Parameters
- position
Type: System.Double
- gridSize
Type: System.Double
Return Value
Type: System.Double
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.