c# winform窗體相關屬性

wisdomone1發表於2012-07-08
型別              屬性                          說明
point             location                    窗體相對於螢幕的位置

size               size                            窗體的大小


rectangle       bounds                    等於rectangle(location,size) 

int                   width                          =size.width     窗體的寬度

int                   height                        =size.height


int                   left                              =location.x           窗體的最左上角X的座標值

int                   top                             =location.y              

int                   right                           =location.x + size.width   窗體的最右X座標值

int                    bottom                     =location.y+size.height   窗體的最下Y座標值

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-734911/,如需轉載,請註明出處,否則將追究法律責任。

相關文章