EdgeInsets
live Describes insets along the four edges of a rectangle, used for padding and margins.
Constructor
EdgeInsets
Creates insets with individual values for each edge.
| Parameter | Description |
|---|---|
top | Inset from the top edge. |
right | Inset from the right edge. |
bottom | Inset from the bottom edge. |
left | Inset from the left edge. |
Properties
Bottom
Inset from the bottom edge.
Horizontal
The total horizontal inset (left + right).
Left
Inset from the left edge.
Right
Inset from the right edge.
Top
Inset from the top edge.
Vertical
The total vertical inset (top + bottom).
Zero
Zero insets on all edges.
Methods
All
Creates insets with the same value on all four edges.
| Parameter | Description |
|---|---|
all | The inset value applied to every edge. |
Returns: An EdgeInsets with equal values on all edges.
Equals
Equals
GetHashCode
OnlyBottom
Creates insets with only the bottom edge set; all other edges are zero.
| Parameter | Description |
|---|---|
value | The bottom inset value. |
OnlyLeft
Creates insets with only the left edge set; all other edges are zero.
| Parameter | Description |
|---|---|
value | The left inset value. |
OnlyRight
Creates insets with only the right edge set; all other edges are zero.
| Parameter | Description |
|---|---|
value | The right inset value. |
OnlyTop
Creates insets with only the top edge set; all other edges are zero.
| Parameter | Description |
|---|---|
value | The top inset value. |
op_Equality
op_Inequality
Symmetric
Creates insets with equal top/bottom and equal left/right values.
| Parameter | Description |
|---|---|
vertical | Inset applied to the top and bottom edges. |
horizontal | Inset applied to the left and right edges. |
Returns: An EdgeInsets with symmetric vertical and horizontal values.