新客网WWW.XKER.COM:致力做中国最专业的网络学院!
学院: 操作系统 - 网络应用 - 服务器 - 网络安全 - 工具软件 - 办公软件 - Web开发 - 数据库 - 网页设计 - 图形图像 - 媒体动画 - 硬件学堂 - 存储频道 - QQ专区
您的位置:首页 > 软件开发 > .Net开发 > Asp.net教程 > 正文:About Public Structure----内详

About Public Structure----内详

新客网 XKER.COM 2003-07-12 来源: 收藏本文
给你看看它的定义
Note: This topic is not complete for RTM, nor has it been handed off to localization.
Enter bugs for inaccurate, not incomplete, information using the following RAID template.

This is preliminary documentation and subject to change.
Send feedback on this topic.


Stores the location and size of a rectangular region. For more advanced region functions use a Region object.

For a list of all members of this type, see Rectangle Members.

Object
   ValueType
      Rectangle

[Visual Basic]
<TypeConverter(X, ConverterTypeName="System.Drawing.RectangleConverter, System.Drawing, Version=1.0.2411.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
Public Structure Rectangle
[C#]
[TypeConverter(X, ConverterTypeName="System.Drawing.RectangleConverter, System.Drawing, Version=1.0.2411.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public struct Rectangle
[C++]
[TypeConverter(X, ConverterTypeName="System.Drawing.RectangleConverter, System.Drawing, Version=1.0.2411.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public __value struct Rectangle
[JScript] In JScript, you can use the structures in the .NET Framework, but you cannot define your own.

Remarks
A rectangle is defined by its upper-left corner, width, and height.

Requirements
Namespace: System.Drawing

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000

Assembly: System.Drawing (in System.Drawing.dll)

See Also
Rectangle Members | System.Drawing Namespace | Region


Syntax based on build 2609.


Note: This topic is not complete for RTM, nor has it been handed off to localization.
Enter bugs for inaccurate, not incomplete, information using the following RAID template.

This is 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 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 equal location and size.
Inequality Operator Tests whether two Rectangle objects differ in location 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 of 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 of 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 point 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 an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the common language runtime; therefore, necessary cleanup operations should be done elsewhere.
In C#, finalizers are expressed using destructor syntax.

MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also
Rectangle Structure | System.Drawing Namespace


Syntax based on build 2609.

收藏】 【评论】 【推荐】 【投稿】 【打印】 【关闭
发表评论
要记得去论坛讨论,点击注册新会员匿名评论
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
阅读排行
随机推荐
实用信息推荐