Click or drag to resize

ControlIHandlerSize Property

Gets or sets the size of the control. Use -1 to specify auto sizing for either the width and/or height.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Size Size { get; set; }

Property Value

Type: Size
The current size of the control
Setting the size of controls is entirely optional as most controls will size themselves appropriately. When specifying a size, it will be used as the desired size of the control. The container will reposition and resize the control depending on the available size. For a Window, it is preferred to set the ClientSize instead, as various platforms have different sizes of window decorations, toolbars, etc.
See Also