Nevron .NET Vision
Nevron.Diagram.Batches Namespace / NBatchLayout Class / SnapPoint Method
point to snap
grid origin
grid cell size


In This Topic
    SnapPoint Method (NBatchLayout)
    In This Topic
    Snaps the specified point to a virtual grid
    Syntax
    'Declaration
     
    
    Protected Overridable Function SnapPoint( _
       ByVal point As NPointF, _
       ByVal gridOrigin As NPointF, _
       ByVal gridCellSize As NSizeF _
    ) As NPointF
    'Usage
     
    
    Dim instance As NBatchLayout
    Dim point As NPointF
    Dim gridOrigin As NPointF
    Dim gridCellSize As NSizeF
    Dim value As NPointF
     
    value = instance.SnapPoint(point, gridOrigin, gridCellSize)
    protected virtual NPointF SnapPoint( 
       NPointF point,
       NPointF gridOrigin,
       NSizeF gridCellSize
    )

    Parameters

    point
    point to snap
    gridOrigin
    grid origin
    gridCellSize
    grid cell size

    Return Value

    point snapped to the grid
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also