margin

Sets the space a button keeps between its border and its content.

This is the space inside the border; to put space outside it, size the button or space it in its container. Once the style stops setting it, the button gets back the space the look and feel had chosen.

The button's default border turns this into space, so a button given another border leaves the margin to that border - an empty or a line border ignores it.

Parameters

margin

how much each side keeps; all four at zero pulls the content flush with the border.

See also


Sets the space a text component keeps between its border and its text.

This is the space inside the border; to put space outside it, size the component or space it in its container. Once the style stops setting it, the component gets back the space the look and feel had chosen.

The component's default border turns this into space, so a component given another border leaves the margin to that border - an empty or a line border ignores it.

Parameters

margin

how much each side keeps; all four at zero pulls the text flush with the border.

See also