Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Shared Function RoundToGrid ( _
position As Double, _
gridSize As Double _
) As Double
'使用
Dim position As Double
Dim gridSize As Double
Dim returnValue As Double
returnValue = SnapToGridRule.RoundToGrid(position, _
gridSize)
public static double RoundToGrid(
double position,
double gridSize
)
public:
static double RoundToGrid(
double position,
double gridSize
)
public static function RoundToGrid(
position : double,
gridSize : double
) : double
Parameters
- position
Type: System.Double
- gridSize
Type: System.Double
Return Value
Type: System.Double
Permissions
- 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.