Rectangle.Contains Method (Rectangle, Boolean)
Determines whether this Rectangle entirely contains a specified Rectangle.
Syntax
'Declaration
Public Sub Contains ( _
ref value As Rectangle, _
out result As Boolean _
)
public void Contains (
ref Rectangle value,
out bool result
)
public:
void Contains(
ref Rectangle value,
out bool result
)
Parameters
- value
Type: Rectangle
The Rectangle to evaluate. - result
Type: Boolean
[OutAttribute] On exit, is true if this Rectangle entirely contains the specified Rectangle, or false if not.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone