xtd 0.2.0
Loading...
Searching...
No Matches

◆ bounds() [2/2]

virtual control & xtd::forms::control::bounds ( const xtd::drawing::rectangle bounds)
virtual

Sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.

Parameters
boundsA rectangle in pixels relative to the parent control that represents the size and location of the control including its nonclient elements.
Returns
Current control.
Remarks
The bounds of the control include the nonclient elements such as scroll bars, borders, title bars, and menus. The Set_bounds_core method is called to set the bounds property. The bounds property is not always changed through its set method so you should override the set_bounds_core method to ensure that your code is executed when the bounds property is set.