Condividi tramite


RectangleD.Intersect Method

Definition

Overloads

Intersect(RectangleD)

Replaces this RectangleD structure with the intersection of itself and the specified RectangleD structure.

Intersect(RectangleD, RectangleD)

Returns a RectangleD structure that represents the intersection of two rectangles. If there is no intersection, null is returned.

Intersect(RectangleD)

Replaces this RectangleD structure with the intersection of itself and the specified RectangleD structure.

public:
 void Intersect(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD rectangle);
public void Intersect (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD rectangle);
member this.Intersect : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> unit
Public Sub Intersect (rectangle As RectangleD)

Parameters

rectangle
RectangleD

The rectangle to intersect.

Applies to

Intersect(RectangleD, RectangleD)

Returns a RectangleD structure that represents the intersection of two rectangles. If there is no intersection, null is returned.

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

Parameters

first
RectangleD

A rectangle to intersect.

second
RectangleD

A rectangle to intersect.

Returns

A third RectangleD structure the size of which represents the overlapped area of the two specified rectangles.

Applies to