A common name for size and location?
This might be a bit of a silly question since this is all about terms and naming, but it's very important for me to name my methods correctly.
I am creating a window form and I need a method that sets the sizes and positions of buttons and text boxes (on process initialization and every time my form resizes). What should this method be?
I am currently using the name SetSizeAndLocation();
, but I find it rather disturbing. Is there a general term for size and location?
source to share
I often find that position + window size are referenced together as the "geometry" of the window, for example. in tcl / tk windowmanagement .
you will also find this in the X-window system.
source to share
On Windows Forms, a property Control.Bounds
allows you to get or set a Rectangle that contains both the size and position of the control, so I think that SetBounds
would be a good name for your method.
source to share