Nevron .NET Vision
Nevron.Diagram.Batches Namespace / NBatchLayout Class / AlignToGrid Method
origin point of the grid in scene coordinates
grid cell size in scene coordinates
whether the transaction should be rolled back if some of the nodes style cannot be changed


In This Topic
    AlignToGrid Method
    In This Topic
    Aligns the locations of the nodes from this batch to the specified virtual grid (defined by origin and cell size)
    Syntax
    'Declaration
     
    
    Public Overridable Function AlignToGrid( _
       ByVal gridOrigin As NPointF, _
       ByVal gridCellSize As NSizeF, _
       ByVal rollbackOnFail As System.Boolean _
    ) As NTransactionResult
    'Usage
     
    
    Dim instance As NBatchLayout
    Dim gridOrigin As NPointF
    Dim gridCellSize As NSizeF
    Dim rollbackOnFail As System.Boolean
    Dim value As NTransactionResult
     
    value = instance.AlignToGrid(gridOrigin, gridCellSize, rollbackOnFail)
    public virtual NTransactionResult AlignToGrid( 
       NPointF gridOrigin,
       NSizeF gridCellSize,
       System.bool rollbackOnFail
    )

    Parameters

    gridOrigin
    origin point of the grid in scene coordinates
    gridCellSize
    grid cell size in scene coordinates
    rollbackOnFail
    whether the transaction should be rolled back if some of the nodes style cannot be changed

    Return Value

    batch result
    Remarks
    If a valid document is provided this method will record the changes in a single transaction.
    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