RectangleD.Contains 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| Contains(PointD) |
确定指定点是否包含在此 RectangleD 结构内。 |
| Contains(RectangleD) |
确定矩形所表示的矩形区域是否完全包含在此 RectangleD 结构内。 |
| Contains(Double, Double) |
确定指定点是否包含在此 RectangleD 结构内。 |
Contains(PointD)
确定指定点是否包含在此 RectangleD 结构内。
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
参数
- pt
- PointD
要测试的 PointD。
返回
如果 pt 参数表示的点包含在此 RectangleD 结构中,则此方法返回 true;否则为 false。
适用于
Contains(RectangleD)
确定矩形所表示的矩形区域是否完全包含在此 RectangleD 结构内。
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
参数
- rectangle
- RectangleD
要测试的 RectangleD。
返回
如果矩形所表示的矩形区域完全包含在此 RectangleD 所表示的矩形区域中,则此方法返回 true;否则为 false。
适用于
Contains(Double, Double)
确定指定点是否包含在此 RectangleD 结构内。
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
参数
- x
- Double
要测试的点的 X 坐标。
- y
- Double
要测试的点的 y 坐标
返回
如果 x 和 y 定义的点包含在此 RectangleD 结构中,则此方法返回 true;否则为 false。