SetPadding Method

SetPadding(IStyle, StyleLength, StyleLength, StyleLength, StyleLength)

Short hand for setting padding properties in one go, like in the USS padding property.

Declaration
public static void SetPadding(this IStyle style, StyleLength top, StyleLength right, StyleLength bottom, StyleLength left)
Parameters
IStyle style

The style to modify

StyleLength top

The value for paddingTop

StyleLength right

The value for paddingRight

StyleLength bottom

The value for paddingBottom

StyleLength left

The value for paddingLeft