About Public Structure----内详

给你看看它的定义
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.

时间: 2024-12-23 04:35:41

About Public Structure----内详的相关文章

邀请各路.Net精鹰加入群31160288,百G视频内详!

问题描述 本群拥有最多的视频教程,真正做到全免费共享,群内美女当道,帅哥横行,欢迎.Net爱好者加入!记住我们的QQ群31160288

propertyGrid 自定义类型为什么显示只读?内详

问题描述 下面是我在c++/CLI中的部分代码refclassFloat2{public:propertyfloatX{floatget(){returnx;}voidset(floatfX){x=fX;}}propertyfloatY{floatget(){returny;}voidset(floatfY){y=fY;}}Float2(floatfX,floatfY){x=fX;y=fY;}private:floatx,y;}////下边这个是测试对象refclassTest{public:p

[编程难题]编写一个求解时间满足约束的的算法.说明内详.真诚求助

问题描述 1/已知有如下一组活动,每个活动都有其工作时间和所需人力,在保证活动前后顺序和不超过人力资源约束的前提下,求得所有活动完成的总共最短工作时间.已知参数如下:说明:活动序号j,工作时间pj,所需人力lj,前序活动Lj,优先权v(j)活动的优先权:j1234567891011v(j)1011793854621总的人力资源约束maxReaource为常量6,指的是同时工作的人力数量不能超过此常量以上数据和人力资源约束常量均为已知,活动序号不表示活动的执行顺序.2/求解假设为每个活动随机分配一

php 面向对象访问控制 public,private,protected详解

在PHP5中增强了面向对象的机制,加入了面向对象常见的public.private.protected这样的访问控制机制.从字面意思来理解: Public 无疑是公共的意思,意思是说类本身和其外部的子类都可以访问这个属性或者方法: Private 英文翻译过来就是私有的意思,只能是类本身在类的内部才能访问--实例化的对象句柄不能访问该属性和方法,子类也不能访问: Protected 受保护的属性或者方法,这个属性或者是方法只能被类本身或者子类的内部访问,实例化的对象句柄不能访问. 现在我们举个例

图片在固定div组中自适应并撑满div格如何实现(内详)?

问题描述 标题可能描述不太清除,这里详细说明:前置1:图片来源于用户,大小不确定,宽高比不确定前置2:一块固定的div缩略去显示1-9张图片,外层div格式固定,1-9张图片的格子div划分也固定(9张图片的时候类似九宫格). 如果我图片按照宽度去等比缩放,溢出的高度通过css overflow:hidden去隐藏,部分图片可以达到效果.宽度既全部压缩,高度只显示部分,无变形. 问题来了: 但是有部分图片因为高度随着适应宽度进行等比缩放,缩放后的高度已经无法撑满显示这张图片的div.就会留白..

菜鸟,新学,希望得到帮助CS1012: 字符文本中的字符太多,内详

问题描述 "/GUESTBOOK"应用程序中的服务器错误.--------------------------------------------------------------------------------编译错误说明:在编译向该请求提供服务所需资源的过程中出现错误.请检查下列特定错误详细信息并适当地修改源代码.编译器错误信息:CS1012:字符文本中的字符太多源错误:行19:{行20:SqlConnectionconn=newSqlConnection(@"se

如何让级联更新关联数据的字段?内详。

问题描述 我做逻辑删除. 表A关联表B, 一对多. 逻辑删除实际上就是在表的数据字段的deleted设置一个数字而已.实际上就是更新.那么在更新这个数据的时候,怎么去同时更新他关联的B表的数据的deleted字段呢?谢谢~~麻烦看清楚问题哦,不是加cascade,orphanRemoval之类的就能解决的那种. 目前我是更新了A以后,再循环去更新B. 解决方案 通过触发器实现

想做个自动提交表单功能,有个问题想问下,内详

问题描述 1.本来想用HttpWebRequest做的,但是那个页面有个hidden的hash值,不知道怎么生成的,还有验证码,其实能获取并提交成功,手动填写验证码我也可以接受,只要能快速在页面input里填上我预先准备好的内容2.后来想用WebBrowser,DocumentCompleted中分析HtmlDocument来实现先用一个比较简单的页面试了下,把我要求的内容填进查询框,然后触发查询按钮这里的时候查询按钮没有name,那我代码里应该如何触发? 解决方案 本帖最后由 liuyuxua

请教 要实现一个普通树结构作为缓存,内详

问题描述 原先是用jtree,DefaultMutableTreeNode显示实现一棵树,现在不需要在界面上显示,但自己还是要缓存这棵树,但要有根据节点名称查询节点路径信息等功能,应该如何做法是不是需要自己定义树结构,完全不用到DefaultMutableTreeNode,UserObject这些东东了?classTree{List<Tree>son;//子集Treeparent;//父对象}没有思路啊,有经验的大侠,能否指点下或给个例子,谢谢 解决方案 解决方案二:希望有人能解决,学习学习,

java小程序, 虚心求教 TT $$$RMB重谢$$$ 内详

问题描述 java小作业,很简单,有人愿意帮忙吗,虚心求教TT请加qq14396831九二 解决方案 本帖最后由 homewalker 于 2010-05-29 22:53:42 编辑解决方案二:为虾米人这么少呢解决方案三:什么忙?解决方案四:发我邮件吧.dahaidao@sina.com解决方案五:一个用java实现树算法的问题,几百行,会的半天就写出来的觉得能行的加我qq呀$$$感谢哦解决方案六:数据结构没学好....闷解决方案七:其实就是算法的问题解决方案八:用C会写.解决方案九:java