Main Content


Class: slmetric.dashboard.Container
Package: slmetric.dashboard

Obtain distance from container edge to its contents


pixels = getMargin(Container)


pixels = getMargin(Container) returns how far in pixels the edges of an slmetric.dashboard.Container object is from the widgets that it contains.

Input Arguments

expand all

The slmetric.dashboard.Container object for which you are obtaining the margin distance.

Output Arguments

expand all

Margin distance from container contents in pixels.

Example: '40 px'

Data Types: char

Version History

Introduced in R2018b