## RectangleF.Union method

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

```csharp
public static RectangleF Union(RectangleF a, RectangleF b)
```

| Parameter | Type | Description |
| --- | --- | --- |
| a | RectangleF | First rectangle to union. |
| b | RectangleF | Second rectangle to union. |

### Return Value

A third RectangleF structure that contains both of the two rectangles that form the union.

### See Also

* struct [RectangleF](../)
* namespace [System.Drawing](../../rectanglef/)
* assembly [Aspose.Drawing](../../../)


