[JScript] in JScript, your can use the structures in the. NET Framework, but to you cannot define your.
remarks
A rectangle is defined to its upper-left corner, width, and height.
Requirements
Namespace:System.Drawing
platforms:windows, Windows NT 4.0, Windows Millennium Edition, Windows 2000
Assembly:System.Drawing (in System.Drawing.dll)
Also
Rectangle Members | System.Drawing Namespace | Region
Syntax based on build 2609.
note:this topic isn't complete for RTM, nor has the it been handed off to localization.
Enter bugs for inaccurate, not incomplete, information using the following RAID template.
this are preliminary documentation and subject to change.
Send feedback on this topic.
public Static (Shared) Fields
Empty Stores The location and size of a rectangular region. For the more advanced region functions use a region object.
public Static (Shared) Methods
FROMLTRB creates a new Rectangle with the specified location and size.
inflate overloaded. Inflates this Rectangle by the specified amount.
Intersect overloaded. [to be supplied.]
Union creates a rectangle that represents the union between a and B.
public Static (Shared) Operators
Equality Operator Tests whether two Rectangle objects have and size.
inequality Operator Tests whether two Rectangle objects in differ or size.
Public Instance Constructors
Rectangle Constructor overloaded. Initializes a new instance of the Rectangle class.
Public Instance Properties
Bottom Gets The y-coordinate of the lower-right corner of the rectangular region defined by this Rectangle.
Height Gets or sets the width of the rectangular region defined by this Rectangle.
IsEmpty Tests Whether this Rectangle has a Width or a Height of 0.
left Gets the x-coordinate of the upper-left corner of the rectangular region defined by this Rectangle.
Location Gets or sets the coordinates of the upper-left corner of the rectangular region represented by this Rectangle.
right Gets the x-coordinate of the lower-right corner to the rectangular region defined by this Rectangle.
size Gets or sets the size of this Rectangle.
Top Gets The y-coordinate of the upper-left corner to the rectangular region defined by this Rectangle.
width Gets or sets the width of the rectangular region defined by this Rectangle.
X Gets or sets the x-coordinate of the upper-left corner of the rectangular region defined by this Rectangle.
Y Gets or sets the y-coordinate of the upper-left corner of the rectangular region defined by this Rectangle.
Public Instance Methods
Contains overloaded. Determines if the specfied is contained within this rectangle.
Equals overridden. Tests whether obj is a Rectangle with the same location and size of this Rectangle.
GetHashCode overridden. [to be supplied.]
GetType (inherited from Object) Gets the Type of the object.
inflate overloaded. Inflates this Rectangle by the specified amount.
Intersect overloaded. [to be supplied.]
Intersectswith Determines if this rectangle intersets with rect.
Offset overloaded. Adjusts the location of this rectangle by the specified amount.
ToString overridden. Converts the attributes of this Rectangle to a human readable string.
Protected Instance Methods
Finalize (inherited from Object) allows a object to attempt to free and perform the other cleanup operations The Object is reclaimed by the garbage Collector (GC). This is ignored by the common language runtime; Therefore, necessary cleanup operations should was done elsewhere.
in C #, finalizers are expressed using destructor syntax.
MemberwiseClone (inherited from Object) creates a shallow copy of the current object.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.