Nevron Open Vision Documentation
Nevron.Nov.Diagram.Batches Namespace / NBatchLayout Class / SizeToGrid Method
origin point of the grid in scene coordinates
grid cell size in scene coordinates


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 Function SizeToGrid( _
       ByVal gridOrigin As NPoint, _
       ByVal gridCellSize As NSize _
    ) As NTransactionResult
    'Usage
     
    
    Dim instance As NBatchLayout
    Dim gridOrigin As NPoint
    Dim gridCellSize As NSize
    Dim value As NTransactionResult
     
    value = instance.SizeToGrid(gridOrigin, gridCellSize)

    Parameters

    gridOrigin
    origin point of the grid in scene coordinates
    gridCellSize
    grid cell size in scene coordinates

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