Nevron .NET Vision
Nevron.Diagram.WinForm Namespace / NHorizontalRuler Class / SnapX Method
x coordinate to snap
snap context
snapped X coordinate

In This Topic
    SnapX Method (NHorizontalRuler)
    In This Topic
    Tries to snap the specified X coordinate
    Public Overridable Function SnapX( _
       ByVal x As System.Single, _
       ByVal context As NSnapContext, _
       ByRef snappedX As System.Single _
    ) As System.Boolean
    Dim instance As NHorizontalRuler
    Dim x As System.Single
    Dim context As NSnapContext
    Dim snappedX As System.Single
    Dim value As System.Boolean
    value = instance.SnapX(x, context, snappedX)
    public virtual System.bool SnapX( 
       System.float x,
       NSnapContext context,
       ref System.float snappedX


    x coordinate to snap
    snap context
    snapped X coordinate

    Return Value

    true if successfully snapped, otherwise false

    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