RectangleF.Contains Método

Definição

Determina se o ponto especificado está contido nessa estrutura RectangleF.Determines if the specified point is contained within this RectangleF structure.

Sobrecargas

Contains(PointF)

Determina se o ponto especificado está contido nessa estrutura RectangleF.Determines if the specified point is contained within this RectangleF structure.

Contains(RectangleF)

Determina se a região retangular representada por rect está inteiramente contida dentro desta estrutura RectangleF.Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure.

Contains(Single, Single)

Determina se o ponto especificado está contido nessa estrutura RectangleF.Determines if the specified point is contained within this RectangleF structure.

Contains(PointF)

Determina se o ponto especificado está contido nessa estrutura RectangleF.Determines if the specified point is contained within this RectangleF structure.

public:
 bool Contains(System::Drawing::PointF pt);
public bool Contains (System.Drawing.PointF pt);
member this.Contains : System.Drawing.PointF -> bool
Public Function Contains (pt As PointF) As Boolean

Parâmetros

pt
PointF

O PointF a ser testado.The PointF to test.

Retornos

true se o ponto representado pelo parâmetro pt estiver contido dentro desta estrutura RectangleF; caso contrário, false.true if the point represented by the pt parameter is contained within this RectangleF structure; otherwise, false.

Contains(RectangleF)

Determina se a região retangular representada por rect está inteiramente contida dentro desta estrutura RectangleF.Determines if the rectangular region represented by rect is entirely contained within this RectangleF structure.

public:
 bool Contains(System::Drawing::RectangleF rect);
public bool Contains (System.Drawing.RectangleF rect);
member this.Contains : System.Drawing.RectangleF -> bool
Public Function Contains (rect As RectangleF) As Boolean

Parâmetros

rect
RectangleF

O RectangleF a ser testado.The RectangleF to test.

Retornos

true se a região retangular representada por rect estiver inteiramente contida dentro da região retangular representada por este RectangleF; caso contrário, false.true if the rectangular region represented by rect is entirely contained within the rectangular region represented by this RectangleF; otherwise, false.

Contains(Single, Single)

Determina se o ponto especificado está contido nessa estrutura RectangleF.Determines if the specified point is contained within this RectangleF structure.

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

Parâmetros

x
Single

A coordenada X do ponto a ser testado.The x-coordinate of the point to test.

y
Single

A coordenada Y do ponto a ser testado.The y-coordinate of the point to test.

Retornos

true se o ponto definido por x e y estiver contido nesta estrutura RectangleF; caso contrário, false.true if the point defined by x and y is contained within this RectangleF structure; otherwise, false.

Aplica-se a