Nevron Open Vision Documentation
Nevron.Nov.Diagram Namespace / NSnapAndGlue Class / SnapXToGuidelines Method
coordinate to snap
area around guideline for snapping
the result of snapping


In This Topic
    SnapXToGuidelines Method
    In This Topic
    Tries to snaps a X coordinate to a vertical guideline coordinate.
    Syntax
    'Declaration
     
    
    Public Function SnapXToGuidelines( _
       ByVal activePage As NPage, _
       ByVal x As System.Double, _
       ByVal snapArea As System.Double, _
       ByRef snappedX As System.Double _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NSnapAndGlue
    Dim activePage As NPage
    Dim x As System.Double
    Dim snapArea As System.Double
    Dim snappedX As System.Double
    Dim value As System.Boolean
     
    value = instance.SnapXToGuidelines(activePage, x, snapArea, snappedX)
    public System.bool SnapXToGuidelines( 
       NPage activePage,
       System.double x,
       System.double snapArea,
       out System.double snappedX
    )

    Parameters

    activePage
    x
    coordinate to snap
    snapArea
    area around guideline for snapping
    snappedX
    the result of snapping

    Return Value

    true if snapping succeeded, otherwise false
    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