Skip to Content
API ReferenceEdgeInsets

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.

ParameterDescription
topInset from the top edge.
rightInset from the right edge.
bottomInset from the bottom edge.
leftInset from the left edge.

Properties

Bottom

Inset from the bottom edge.

Horizontal

The total horizontal inset (left + right).

Left

Inset from the left edge.

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.

ParameterDescription
allThe 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.

ParameterDescription
valueThe bottom inset value.

OnlyLeft

Creates insets with only the left edge set; all other edges are zero.

ParameterDescription
valueThe left inset value.

OnlyRight

Creates insets with only the right edge set; all other edges are zero.

ParameterDescription
valueThe right inset value.

OnlyTop

Creates insets with only the top edge set; all other edges are zero.

ParameterDescription
valueThe top inset value.

op_Equality

op_Inequality

Symmetric

Creates insets with equal top/bottom and equal left/right values.

ParameterDescription
verticalInset applied to the top and bottom edges.
horizontalInset applied to the left and right edges.

Returns: An EdgeInsets with symmetric vertical and horizontal values.

ToString

Last updated on