xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.

§ bounds() [2/2]

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

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

Parameters
Arectangle in pixels relative to the parent control that represents the size and location of the control including its nonclient elements.
Returns
This 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.