<h2title="Uses of Class Microsoft.Xna.Framework.Rectangle"class="title">Uses of Class<br>Microsoft.Xna.Framework.Rectangle</h2>
</div>
<divclass="classUseContainer">
<ulclass="blockList">
<liclass="blockList">
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></span><spanclass="tabEnd"> </span></caption>
<h3>Uses of <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> in <ahref="../../../../Microsoft/Xna/Framework/package-summary.html">Microsoft.Xna.Framework</a></h3>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <ahref="../../../../Microsoft/Xna/Framework/package-summary.html">Microsoft.Xna.Framework</a> declared as <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<divclass="block">Returns a Rectangle with all of its values set to zero.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../../../Microsoft/Xna/Framework/package-summary.html">Microsoft.Xna.Framework</a> that return <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Intersect</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</code>
<divclass="block">Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Union</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</code>
<divclass="block">Creates a new Rectangle that exactly contains two other rectangles.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../../../Microsoft/Xna/Framework/package-summary.html">Microsoft.Xna.Framework</a> with parameters of type <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Rectangle)">Contains</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value)</code>
<divclass="block">Determines whether this Rectangle entirely contains a specified Rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Contains(Microsoft.Xna.Framework.Rectangle, boolean)">Contains</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value,
boolean result)</code>
<divclass="block">Determines whether this Rectangle entirely contains a specified Rectangle.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Equals(Microsoft.Xna.Framework.Rectangle)">Equals</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> other)</code>
<divclass="block">Determines whether the specified Object is equal to the Rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Intersect</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</code>
<divclass="block">Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static void</code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Intersect(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Intersect</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> result)</code>
<divclass="block">Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Intersects(Microsoft.Xna.Framework.Rectangle)">Intersects</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value)</code>
<divclass="block">Determines whether a specified Rectangle intersects with this Rectangle.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Intersects(Microsoft.Xna.Framework.Rectangle, boolean)">Intersects</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value,
boolean result)</code>
<divclass="block">Determines whether a specified Rectangle intersects with this Rectangle.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>static <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Union</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2)</code>
<divclass="block">Creates a new Rectangle that exactly contains two other rectangles.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>static void</code></td>
<tdclass="colLast"><spanclass="strong">Rectangle.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html#Union(Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle)">Union</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value1,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> value2,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> result)</code>
<divclass="block">Creates a new Rectangle that exactly contains two other rectangles.</div>
<h3>Uses of <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> in <ahref="../../../../Microsoft/Xna/Framework/Graphics/package-summary.html">Microsoft.Xna.Framework.Graphics</a></h3>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../../../Microsoft/Xna/Framework/Graphics/package-summary.html">Microsoft.Xna.Framework.Graphics</a> that return <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<divclass="block">Gets the size of this resource.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<divclass="block">Gets the size of this resource.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<divclass="block">Returns the title safe area of the display.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></code></td>
<divclass="block">Returns the title safe area of the current viewport.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <ahref="../../../../Microsoft/Xna/Framework/Graphics/package-summary.html">Microsoft.Xna.Framework.Graphics</a> with parameters of type <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><spanclass="strong">SpriteBatch.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, and color.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><spanclass="strong">SpriteBatch.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, and color.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><spanclass="strong">SpriteBatch.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color, float, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Graphics.SpriteEffects, float)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> destinationRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><spanclass="strong">SpriteBatch.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteBatch.html#Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)">Draw</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Graphics/Texture2D.html"title="class in Microsoft.Xna.Framework.Graphics">Texture2D</a> texture,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, position, source rectangle, and color.</div>
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
float scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
float layerDepth)</code>
<divclass="block">Adds a sprite to a batch of sprites for rendering using the specified texture, destination rectangle, source rectangle, color, rotation, origin, effects and layer.</div>
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> position,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> sourceRectangle,
<ahref="../../../../Microsoft/Xna/Framework/Color.html"title="class in Microsoft.Xna.Framework">Color</a> color,
float rotation,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> origin,
<ahref="../../../../Microsoft/Xna/Framework/Vector2.html"title="class in Microsoft.Xna.Framework">Vector2</a> scale,
<ahref="../../../../Microsoft/Xna/Framework/Graphics/SpriteEffects.html"title="enum in Microsoft.Xna.Framework.Graphics">SpriteEffects</a> effects,
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> rect,
T[] data,
int startIndex,
int elementCount)</code>
<divclass="block">Gets a copy of 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><spanclass="strong">Viewport.</span><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/Viewport.html#setBounds(Microsoft.Xna.Framework.Rectangle)">setBounds</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> bounds)</code>
<divclass="block">Sets the size of this resource.</div>
<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> rect,
T[] data,
int startIndex,
int elementCount)</code>
<divclass="block">Sets 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.</div>
</td>
</tr>
</tbody>
</table>
<tableborder="0"cellpadding="3"cellspacing="0"summary="Use table, listing constructors, and an explanation">
<caption><span>Constructors in <ahref="../../../../Microsoft/Xna/Framework/Graphics/package-summary.html">Microsoft.Xna.Framework.Graphics</a> with parameters of type <ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a></span><spanclass="tabEnd"> </span></caption>
<tr>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<tbody>
<trclass="altColor">
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Graphics/Viewport.html#Viewport(Microsoft.Xna.Framework.Rectangle)">Viewport</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Rectangle.html"title="class in Microsoft.Xna.Framework">Rectangle</a> bounds)</code>
<divclass="block">Creates an instance of this object.</div>