class
Box
public class Box Represents position and size of a Panel on the screen.
Constructors
Box() Properties
| Name | Type | Description |
|---|---|---|
Left | Single | Position of the left edge in screen coordinates. |
Right | Single | Position of the right edge in screen coordinates. |
Top | Single | Position of the top edge in screen coordinates. |
Bottom | Single | Position of the bottom edge in screen coordinates. |
Fields
| Name | Type | Description |
|---|---|---|
RectOuter | Rect | Position and size of the element on the screen, including both - its padding AND margin. |
RectInner | Rect | Position and size of only the element's inner content on the screen, without padding OR margin. |
Padding | Margin | The size of padding. |
Border | Margin | The size of border. |
Margin | Margin | The size of border. |
Rect | Rect | Position and size of the element on the screen, including its padding, but not margin. |
ClipRect | Rect | Rect minus the border sizes. Used internally to "clip" (hide) everything outside of these bounds, if the panels OverflowMode is not set to Visible. |