RectangleD.Union Method
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Shared Function Union ( _
first As RectangleD, _
second As RectangleD _
) As RectangleD
public static RectangleD Union(
RectangleD first,
RectangleD second
)
public:
static RectangleD Union(
RectangleD first,
RectangleD second
)
static member Union :
first:RectangleD *
second:RectangleD -> RectangleD
public static function Union(
first : RectangleD,
second : RectangleD
) : RectangleD
Parameters
first
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDA rectangle to union.
second
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDA rectangle to union.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.