SharpNeat.View.Graph.GridLayoutManager.UpdateModelBounds C# (CSharp) Метод

UpdateModelBounds() приватный Метод

private UpdateModelBounds ( GraphNode node, Size &bounds ) : void
node GraphNode
bounds System.Drawing.Size
Результат void
        private void UpdateModelBounds(GraphNode node, ref Size bounds)
        {
            if(node.Position.X > bounds.Width) {
                bounds.Width = node.Position.X;
            }
            if(node.Position.Y > bounds.Height) {
                bounds.Height = node.Position.Y;
            }
        }
    }