SuperMap.WinRT.Mapping.ElementsLayer.UpdateFullBounds C# (CSharp) Method

UpdateFullBounds() private method

private UpdateFullBounds ( IEnumerable items ) : void
items IEnumerable
return void
        private void UpdateFullBounds(IEnumerable items)
        {
            foreach (object obj2 in items)
            {
                UIElement element = (UIElement)obj2;
                Rectangle2D rect2D = GetBBox(element);
                if (element is ShapeElement)
                {
                    rect2D = ((ShapeElement)element).Bounds;
                }

                if (Rectangle2D.IsNullOrEmpty(fullBounds))
                {
                    fullBounds = rect2D;
                }
                else
                {
                    fullBounds = fullBounds.Union(rect2D);
                }
            }
        }