Share via


RectangleD.Union(RectangleD, RectangleD) Method

Definition

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

public:
 static Microsoft::VisualStudio::Modeling::Diagrams::RectangleD Union(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD first, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD second);
public static Microsoft.VisualStudio.Modeling.Diagrams.RectangleD Union (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD first, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD second);
static member Union : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public Shared Function Union (first As RectangleD, second As RectangleD) As RectangleD

Parameters

first
RectangleD

A rectangle to union.

second
RectangleD

A rectangle to union.

Returns

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

Applies to