SetMargin Method

SetMargin(IStyle, StyleLength, StyleLength, StyleLength, StyleLength)

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

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

The style to modify

StyleLength top

The value for marginTop

StyleLength right

The value for marginRight

StyleLength bottom

The value for marginBottom

StyleLength left

The value for marginLeft