Rectangle.Contains Method (Microsoft.Xna.Framework)

Gets whether or not the provided Point lies within the bounds of this Rectangle.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public bool Contains(
	Point value
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

value
Type: Microsoft.Xna.Framework.Point
The coordinates to check for inclusion in this Rectangle.

Return Value

Type: System.Boolean
true if the provided Point lies inside this Rectangle; false otherwise.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web