MindFusion.Charting for JavaScript Programmer's Guide
DrawingUtils.unionRects Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Returns the smallest possible rectangle containing both of the specified rectangles.

Namespace: MindFusion.Drawing
File: DrawingUtils.js

## Syntax

JavaScript Copy Code
function unionRects (rect1, rect2)

### Parameters

rect1

  Type: Rect
  Rect. The first rectangle.

rect2

  Type: Rect
  Rect. The second rectangle.

### Return Value

Type: Rect
Rect. A Rect instance that represents the union of the specified arguments.

## See Also

DrawingUtils Members
DrawingUtils Class
MindFusion.Drawing Namespace