Nevron .NET Vision
Nevron.Diagram.Batches Namespace / NBatchTranslate Class / Translate Method / Translate(Single,Single,Boolean,Boolean) Method
x translate in scene coordinates
y translate in scene coordinates
indicates whether the move permissions of the nodes must be discarded
whether the transaction should be rolled back if some of the nodes cannot be translated


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

    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
    rollbackOnFail
    whether the transaction should be rolled back if some of the nodes cannot be translated

    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 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