Freigeben über


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

Return Value

Type: System.Double

.NET Framework Security

See Also

Reference

SnapToGridRule Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace