Nevron .NET Vision
Nevron.Diagram.Batches Namespace / NBatchLayout Class / SizeToGrid 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 permissions do not allow the operation


In This Topic
    SizeToGrid Method
    In This Topic
    Sizes the nodes from this batch to fit specified virtual grid cells (defined by origin and cell size)
    Syntax
    'Declaration
     
    
    Public Overridable Function SizeToGrid( _
       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.SizeToGrid(gridOrigin, gridCellSize, rollbackOnFail)
    public virtual NTransactionResult SizeToGrid( 
       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 permissions do not allow the operation

    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