Partager via


RectangleD.Contains Method

Definition

Overloads

Contains(PointD)

Determines if the specified point is contained within this RectangleD structure.

Contains(RectangleD)

Determines if the rectangular region represented by rectangle is entirely contained within this RectangleD structure.

Contains(Double, Double)

Determines if the specified point is contained within this RectangleD structure.

Contains(PointD)

Determines if the specified point is contained within this RectangleD structure.

public:
 bool Contains(Microsoft::VisualStudio::Modeling::Diagrams::PointD pt);
public bool Contains (Microsoft.VisualStudio.Modeling.Diagrams.PointD pt);
member this.Contains : Microsoft.VisualStudio.Modeling.Diagrams.PointD -> bool
Public Function Contains (pt As PointD) As Boolean

Parameters

pt
PointD

The PointD to test.

Returns

This method returns true if the point represented by the pt parameter is contained within this RectangleD structure; otherwise false.

Applies to

Contains(RectangleD)

Determines if the rectangular region represented by rectangle is entirely contained within this RectangleD structure.

public:
 bool Contains(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD rectangle);
public bool Contains (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD rectangle);
member this.Contains : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> bool
Public Function Contains (rectangle As RectangleD) As Boolean

Parameters

rectangle
RectangleD

The RectangleD to test.

Returns

This method returns true if the rectangular region represented by rectangle is entirely contained within the rectangular region represented by this RectangleD; otherwise false.

Applies to

Contains(Double, Double)

Determines if the specified point is contained within this RectangleD structure.

public:
 bool Contains(double x, double y);
public bool Contains (double x, double y);
member this.Contains : double * double -> bool
Public Function Contains (x As Double, y As Double) As Boolean

Parameters

x
Double

The x-coordinate of the point to test.

y
Double

The y-coordinate of the point to test

Returns

This method returns true if the point defined by x and y is contained within this RectangleD structure; otherwise false.

Applies to