Struct LayoutPadding
Inner spacing of a layout container, in pixels, mirroring CSS padding. Applied between
the container's edges and its children.
Assembly: Serenity.Ui.Domain.dll
Syntax
public struct LayoutPadding
Fields
Bottom
Padding on the bottom edge, in pixels.
Declaration
Field Value
Left
Padding on the left edge, in pixels.
Declaration
Field Value
Right
Padding on the right edge, in pixels.
Declaration
Field Value
Top
Padding on the top edge, in pixels.
Declaration
Field Value
Methods
All(float)
Uniform padding on all four edges.
Declaration
public static LayoutPadding All(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
Returns
Symmetric(float, float)
Separate horizontal (left/right) and vertical (top/bottom) padding.
Declaration
public static LayoutPadding Symmetric(float horizontal, float vertical)
Parameters
| Type |
Name |
Description |
| float |
horizontal |
|
| float |
vertical |
|
Returns