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?

+3


source to share


3 answers


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.

+4


source


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.



+4


source


Rectangle. Like a window shape. A rectangle object consists of the location and size of the rectangular shape.

0


source







All Articles