Click or drag to resize

PixelLayout Class

Layout to position controls by pixel coordinates
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
[ContentPropertyAttribute("Contents")]
public class PixelLayout : Layout

The PixelLayout type exposes the following members.

Constructors
  NameDescription
Public methodPixelLayout
Initializes a new instance of the PixelLayout class
Top
Properties
  NameDescription
Public propertyContents
Gets a collection of controls that are contained by this layout
Public propertyControls
Gets an enumeration of controls that are directly contained by this container
(Overrides ContainerControls.)
Top
Methods
  NameDescription
Public methodAdd(Control, Point)
Adds a control at the specified location
Public methodAdd(Control, Int32, Int32)
Adds a control to the layout with the specified pixel coordinates
Public methodEndInit
Ends the initialization when loading from xaml or other code generated scenarios
(Overrides LayoutEndInit.)
Public methodStatic memberGetLocation
Gets the location of the control in the container
Public methodMove(Control, Point)
Moves a control to the specified location.
Public methodMove(Control, Int32, Int32)
Moves the control to the specified coordinates
Public methodRemove
Remove the specified child control.
(Overrides ContainerRemove(Control).)
Public methodStatic memberSetLocation
Sets the location of the specified control
Top
Remarks
This layout can be used if you want to position controls based on pixel sizes. Note that controls will automatically size themselves and it is recommended to use a DynamicLayout or TableLayout instead, as this will better work across all platforms since each platform might have different standard sizes.
See Also