Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Rectangle Structure
 Rectangle Members

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET-keretrendszer 3.5

Other versions are also available for the following:
.NET Framework Class Library
Rectangle Members

Stores a set of four integers that represent the location and size of a rectangle. For more advanced region functions, use a Region object.

The Rectangle type exposes the following members.

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkRectangleOverloaded. Initializes a new instance of the Rectangle class with the specified location and size.
Top
  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkCeiling Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkContainsOverloaded. Determines if the specified point is contained within the rectangular region defined by this Rectangle.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEquals Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure. (Overrides ValueType..::.Equals(Object).)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFromLTRB Creates a Rectangle structure with the specified edge locations.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCode Returns the hash code for this Rectangle structure. For information about the use of hash codes, see GetHashCode . (Overrides ValueType..::.GetHashCode()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInflateOverloaded. Inflates a Rectangle structure by the specified amount.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIntersectOverloaded. Determines the Rectangle structure that represents the intersection of two rectangles.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIntersectsWith Determines if this rectangle intersects with rect.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkOffsetOverloaded. Adjusts the location of this rectangle by the specified amount.
Public methodStatic memberSupported by the .NET Compact FrameworkRound Converts the specified RectangleF to a Rectangle by rounding the RectangleF values to the nearest integer values.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringOverloaded.
Public methodStatic memberSupported by the .NET Compact FrameworkTruncate Converts the specified RectangleF to a Rectangle by truncating the RectangleF values.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkUnion Gets a Rectangle structure that contains the union of two Rectangle structures.
Top
  NameDescription
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEquality Tests whether two Rectangle structures have equal location and size.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInequality Tests whether two Rectangle structures differ in location or size.
Top
  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEmpty Represents a Rectangle structure with its properties left uninitialized.
Top
  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkBottom Gets the y-coordinate that is the sum of the Y and Height property values of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkHeight Gets or sets the height of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsEmpty Tests whether all numeric properties of this Rectangle have values of zero.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkLeft Gets the x-coordinate of the left edge of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkLocation Gets or sets the coordinates of the upper-left corner of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkRight Gets the x-coordinate that is the sum of X and Width property values of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkSize Gets or sets the size of this Rectangle.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkTop Gets the y-coordinate of the top edge of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkWidth Gets or sets the width of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkX Gets or sets the x-coordinate of the upper-left corner of this Rectangle structure.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkY Gets or sets the y-coordinate of the upper-left corner of this Rectangle structure.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker