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


In This Topic
    SnapYToGuidelines Method
    In This Topic
    Tries to snaps an Y coordinate to a horizontal guideline coordinate.
    Syntax
    'Declaration
     
    
    Public Function SnapYToGuidelines( _
       ByVal activePage As NPage, _
       ByVal y As System.Double, _
       ByVal snapArea As System.Double, _
       ByRef snappedY As System.Double _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NSnapAndGlue
    Dim activePage As NPage
    Dim y As System.Double
    Dim snapArea As System.Double
    Dim snappedY As System.Double
    Dim value As System.Boolean
     
    value = instance.SnapYToGuidelines(activePage, y, snapArea, snappedY)
    public System.bool SnapYToGuidelines( 
       NPage activePage,
       System.double y,
       System.double snapArea,
       out System.double snappedY
    )

    Parameters

    activePage
    y
    coordinate to snap
    snapArea
    area around guideline for snapping
    snappedY
    the result of snapping

    Return Value

    true if snapping succeeded, otherwise false
    Requirements

    Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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), Windows Server 2003 SP2

    See Also