Nevron Open Vision Documentation
Nevron.Nov.Diagram.Batches Namespace / NBatchTranslate Class / Translate Method / Translate(Double,Double,Boolean) Method
x translate in scene coordinates
y translate in scene coordinates
indicates whether the move permissions of the nodes must be discarded


In This Topic
    Translate(Double,Double,Boolean) Method
    In This Topic
    Translates the entity with the specified x and y amount
    Syntax
    'Declaration
     
    
    Public Overloads Function Translate( _
       ByVal dx As System.Double, _
       ByVal dy As System.Double, _
       ByVal discardMovePermissions As System.Boolean _
    ) As NTransactionResult
    'Usage
     
    
    Dim instance As NBatchTranslate
    Dim dx As System.Double
    Dim dy As System.Double
    Dim discardMovePermissions As System.Boolean
    Dim value As NTransactionResult
     
    value = instance.Translate(dx, dy, discardMovePermissions)
    public NTransactionResult Translate( 
       System.double dx,
       System.double dy,
       System.bool discardMovePermissions
    )

    Parameters

    dx
    x translate in scene coordinates
    dy
    y translate in scene coordinates
    discardMovePermissions
    indicates whether the move permissions of the nodes must be discarded

    Return Value

    true if the nodes were successfully translated, otherwise false
    Remarks
    If the move permissions of a particular node do not allow x or y move the respective delta will be set to 0. In this case the transaction will be considered as incomplete.
    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