Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NGraphicsPath Class / TrySnapPoint Method


In This Topic
    TrySnapPoint Method
    In This Topic
    Tries to snap the specified point to the neareast point from this path outline, that is no further that the specified distance.
    Syntax
    'Declaration
     
    
    Public Function TrySnapPoint( _
       ByVal point As NPoint, _
       ByVal distance As System.Double, _
       ByRef snappedPoint As NPoint _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NGraphicsPath
    Dim point As NPoint
    Dim distance As System.Double
    Dim snappedPoint As NPoint
    Dim value As System.Boolean
     
    value = instance.TrySnapPoint(point, distance, snappedPoint)
    public System.bool TrySnapPoint( 
       NPoint point,
       System.double distance,
       out NPoint snappedPoint
    )

    Parameters

    point
    distance
    snappedPoint
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also